当前位置:网站首页>linux下配置Mysql授权某个用户远程访问,不受ip限制
linux下配置Mysql授权某个用户远程访问,不受ip限制
2022-07-02 13:43:00 【多汁多味】
1. 登录mysql
mysql -u root -p2. 用户管理
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;边栏推荐
- 自注意力机制和全连接的图卷积网络(GCN)有什么区别联系?
- TCP server communication process (important)
- Yyds dry inventory KVM new inventory to expand space for home
- MySQL min() finds the minimum value under certain conditions, and there are multiple results
- Take you ten days to easily complete the go micro service series (I)
- [error record] the connection of the flutter device shows loading (disconnect | delete the shuttle/bin/cache/lockfile file)
- Some problems about MySQL installation
- Global and Chinese market of oil analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
- Yyds dry inventory method of deleting expired documents in batch
- 大廠面試總結大全
猜你喜欢

PWM控制舵机

unity Hub 登录框变得很窄 无法登录

pwm呼吸燈

pwm呼吸灯

mysql数据库mysqldump为啥没有创建数据库的语句

Unity使用UGUI设置一个简单多级水平方向下拉菜单(不需要代码)

Foreign enterprise executives, continuous entrepreneurs, yoga and skiing masters, and a program life of continuous iteration and reconstruction

隐私计算技术创新及产业实践研讨会:学习

电脑设备打印机驱动安装失败如何解决

渗透工具-内网权限维持-Cobalt strike
随机推荐
TCP congestion control details | 2 background
Take you ten days to easily complete the go micro service series (I)
Global and Chinese markets for carbon dioxide laser cutting heads 2022-2028: Research Report on technology, participants, trends, market size and share
学生选课系统(山东农业大学课程设计)
Machine learning perceptron model
Summary of monthly report | list of major events of moonbeam in June
Cloud native cicd framework: Tekton
基于Impala的高性能数仓实践之执行引擎模块
DigiCert SSL证书支持中文域名申请吗?
Interview summary of large factories
只是巧合?苹果iOS16的神秘技术竟然与中国企业5年前产品一致!
串口控制舵机转动
Penetration tool - intranet permission maintenance -cobalt strike
【云原生】简单谈谈海量数据采集组件Flume的理解
Unity使用UGUI设置一个简单多级水平方向下拉菜单(不需要代码)
Yolov5 practice: teach object detection by hand
Bib | graph representation based on heterogeneous information network learning to predict drug disease association
Classifier visual interpretation stylex: Google, MIT, etc. have found the key attributes that affect image classification
PCL 最小中值平方法拟合平面
L'explosion de John utilise l'encodage d'entrée par défaut: UTF - 8 Loaded 1 password Hash (bcrypt [blowfish 32 / 64 X3])