当前位置:网站首页>linux下配置Mysql授权某个用户远程访问,不受ip限制
linux下配置Mysql授权某个用户远程访问,不受ip限制
2022-07-02 13:43:00 【多汁多味】
1. 登录mysql
mysql -u root -p
2. 用户管理
use mysql;
3. 查看用户
select host,user from user;
4. 新建并授权用户
# (*.*是允许远程访问的IP的值, 用户名建议不要使用root, '%'表示所有IP)
grant all privileges on *.* to '用户名'@'%' identified by '密码' with grant option;
flush privileges;
5. 更新用户信息
# 根据user和host条件 更新host为 %
update user set Host = '%' where Host = 'localhost' & user = 'xxxin_999';
flush privileges;
6. 删除用户
delete from user where user="xxxin_999" and Host="localhost";
flush privileges;
边栏推荐
- 头条 | 亚控科技产品入选中纺联《纺织服装行业数字化转型解决方案重点推广名录》
- Exploration and practice of integration of streaming and wholesale in jd.com
- MySQL port
- 隐私计算技术创新及产业实践研讨会:学习
- Routing mode: hash and history mode
- unity Hub 登录框变得很窄 无法登录
- 数学分析_笔记_第6章:一元函数的Riemann积分
- 国内比较好的OJ平台[通俗易懂]
- Kubernetes three open interfaces first sight
- Yyds dry inventory KVM new inventory to expand space for home
猜你喜欢
Interview summary of large factories
La boîte de connexion du hub de l'unit é devient trop étroite pour se connecter
LeetCode 2. Add two numbers
Yyds dry goods inventory has not revealed the artifact? Valentine's Day is coming. Please send her a special gift~
曆史上的今天:支付寶推出條碼支付;分時系統之父誕生;世界上第一支電視廣告...
PCL point cloud image transformation
unity Hub 登錄框變得很窄 無法登錄
小鹏P7雨天出事故安全气囊没有弹出 官方回应:撞击力度未达到弹出要求
Penetration tool - intranet permission maintenance -cobalt strike
头条 | 亚控科技产品入选中纺联《纺织服装行业数字化转型解决方案重点推广名录》
随机推荐
中国信通院《数据安全产品与服务图谱》,美创科技实现四大板块全覆盖
渗透工具-内网权限维持-Cobalt strike
LeetCode 5. Longest Palindromic Substring
TCP拥塞控制详解 | 2. 背景
云原生的 CICD 框架:Tekton
[North Asia data recovery] data recovery case of raid crash caused by hard disk disconnection during data synchronization of hot spare disk of RAID5 disk array
Understand the key technology of AGV -- the difference between laser slam and visual slam
Data security industry series Salon (III) | data security industry standard system construction theme Salon
Sim2real environment configuration tutorial
vscode设置删除行快捷键[通俗易懂]
Thinking about absolute truth and relative truth
做机器视觉哪个软件好?
SQL solves the problem of continuous login deformation holiday filtering
一文读懂AGV的关键技术——激光SLAM与视觉SLAM的区别
DGraph: 大规模动态图数据集
电脑管理员权限在哪里可以打开
Foreign enterprise executives, continuous entrepreneurs, yoga and skiing masters, and a program life of continuous iteration and reconstruction
VMware安装win10镜像
小鹏P7雨天出事故安全气囊没有弹出 官方回应:撞击力度未达到弹出要求
隐私计算技术创新及产业实践研讨会:学习