当前位置:网站首页>Configure MySQL under Linux to authorize a user to access remotely, which is not restricted by IP
Configure MySQL under Linux to authorize a user to access remotely, which is not restricted by IP
2022-07-02 16:54:00 【Juicy and tasty】
1. Sign in mysql
mysql -u root -p2. User management
use mysql;

3. To view the user
select host,user from user; 
4. Create and authorize users
# (*.* Remote access is allowed IP Value , User name is not recommended root, '%' Express all IP)
grant all privileges on *.* to ' user name '@'%' identified by ' password ' with grant option;
flush privileges;5. Update user information
# according to user and host Conditions to update host by %
update user set Host = '%' where Host = 'localhost' & user = 'xxxin_999';
flush privileges;6. Delete user
delete from user where user="xxxin_999" and Host="localhost";
flush privileges;边栏推荐
- AcWing 300. Task arrangement
- unity Hub 登錄框變得很窄 無法登錄
- What if the win11 app store cannot load the page? Win11 store cannot load page
- John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])
- 入行数字IC验证后会做些什么?
- 基于多元时间序列对高考预测分析案例
- Detailed explanation of @accessories annotation of Lombok plug-in
- Global and Chinese market of switching valves 2022-2028: Research Report on technology, participants, trends, market size and share
- [fluent] dart data type list set type (define set | initialize | generic usage | add elements after initialization | set generation function | set traversal)
- 数据安全产业系列沙龙(三)| 数据安全产业标准体系建设主题沙龙
猜你喜欢
随机推荐
渗透工具-内网权限维持-Cobalt strike
Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation
False summer vacation
Mysql database mysqldump why there is no statement to create a database
618 reprise en profondeur: la méthode gagnante de la famille Haier Zhi
Global and Chinese market of oil analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
July 1st gift: Yi Jingjie's "hundred day battle" ended perfectly, and the database of Guiyang bank was sealed in advance
Executive engine module of high performance data warehouse practice based on Impala
电脑设备打印机驱动安装失败如何解决
隐私计算技术创新及产业实践研讨会:学习
Detailed explanation of @accessories annotation of Lombok plug-in
LeetCode 1. Sum of two numbers
C语言自定义函数的方法
MySQL port
易语言abcd排序
Seal Library - installation and introduction
Take you ten days to easily complete the go micro service series (I)
The median salary of TSMC's global employees is about 460000, and the CEO is about 8.99 million; Apple raised the price of iPhone in Japan; VIM 9.0 releases | geek headlines
PWM控制舵机
关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...









