当前位置:网站首页>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 -p
2. 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;
边栏推荐
- PWM breathing lamp
- LeetCode 3. Longest substring without duplicate characters
- PWM控制舵机
- 电脑设备打印机驱动安装失败如何解决
- Day 18 of leetcode dynamic planning introduction
- Global and Chinese markets for airport baggage claim conveyors 2022-2028: technology, participants, trends, market size and share Research Report
- Take you ten days to easily complete the go micro service series (I)
- 大廠面試總結大全
- [fluent] dart data type list set type (define set | initialize | generic usage | add elements after initialization | set generation function | set traversal)
- 618深度複盤:海爾智家的制勝方法論
猜你喜欢
隐私计算技术创新及产业实践研讨会:学习
Understand the key technology of AGV -- the difference between laser slam and visual slam
机器学习-感知机模型
LeetCode 2. 两数相加
Lampe respiratoire PWM
大厂面试总结大全
Mathematical analysis_ Notes_ Chapter 6: Riemann integral of univariate function
LeetCode 2. Add two numbers
Interview summary of large factories
L'explosion de John utilise l'encodage d'entrée par défaut: UTF - 8 Loaded 1 password Hash (bcrypt [blowfish 32 / 64 X3])
随机推荐
[error record] error -32000 received from application: there are no running service protocol
618深度複盤:海爾智家的制勝方法論
ROW_ NUMBER()、RANK()、DENSE_ Rank difference
2322. 从树中删除边的最小分数(异或和&模拟)
TCP congestion control details | 2 background
Mathematical analysis_ Notes_ Chapter 5: univariate differential calculus
MySQL port
LeetCode 6. Zigzag transformation (n-shaped transformation)
Global and Chinese markets of stainless steel surgical suture 2022-2028: Research Report on technology, participants, trends, market size and share
C语言中sprintf()函数的用法
Yyds dry inventory uses thread safe two-way linked list to realize simple LRU cache simulation
PCL 最小中值平方法拟合平面
Student course selection system (curriculum design of Shandong Agricultural University)
System Verilog implements priority arbiter
Bib | graph representation based on heterogeneous information network learning to predict drug disease association
LeetCode 6. Z 字形变换 (N字形变换)
Yolov5 practice: teach object detection by hand
Hard core! One configuration center for 8 classes!
Global and Chinese markets for carbon dioxide laser cutting heads 2022-2028: Research Report on technology, participants, trends, market size and share
john爆破出现Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])