当前位置:网站首页>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;
边栏推荐
- Machine learning perceptron model
- 串口控制舵机转动
- Talk about an experience of job hopping and being rejected
- Unity Json 编写
- PWM控制舵机
- 七一献礼:易鲸捷 “百日会战”完美收官 贵阳银行数据库提前封板
- Bib | graph representation based on heterogeneous information network learning to predict drug disease association
- SSM integration exception handler and project exception handling scheme
- 有赞和腾讯云、阿里云一同摘得“中国企业云科技服务商50强”[通俗易懂]
- Leetcode1380: lucky numbers in matrix
猜你喜欢
隐私计算技术创新及产业实践研讨会:学习
Yyds dry inventory uses thread safe two-way linked list to realize simple LRU cache simulation
Sim2real environment configuration tutorial
In MySQL and Oracle, the boundary and range of between and precautions when querying the date
Hard core! One configuration center for 8 classes!
Lampe respiratoire PWM
Interview summary of large factories
Day 18 of leetcode dynamic planning introduction
路由模式:hash和history模式
Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation
随机推荐
Global and Chinese market of discharge machines 2022-2028: Research Report on technology, participants, trends, market size and share
Understand the key technology of AGV -- the difference between laser slam and visual slam
Foreign enterprise executives, continuous entrepreneurs, yoga and skiing masters, and a program life of continuous iteration and reconstruction
Masa framework - DDD design (1)
ROW_ NUMBER()、RANK()、DENSE_ Rank difference
学生选课系统(山东农业大学课程设计)
OpenPose的使用
电脑设备打印机驱动安装失败如何解决
Win11应用商店无法加载页面怎么办?Win11商店无法加载页面
Serial port controls steering gear rotation
⌈ 2022 ⌋ how to use webp gracefully in projects
云原生的 CICD 框架:Tekton
Library management system (Shandong Agricultural University Curriculum Design)
unity Hub 登录框变得很窄 无法登录
Mathematical analysis_ Notes_ Chapter 6: Riemann integral of univariate function
串口控制舵机转动
Typescript array out of order output
Take you ten days to easily complete the go micro service series (I)
MySQL port
Routing mode: hash and history mode