配置mysql允许远程连接的方法
时间:2024-01-24 00:31:56
vim /etc/my.cnf
注释这一行:bind-address=127.0.0.1 ==> #bind-address=127.0.0.1
保存退出。
mysql -uroot -p123456
为需要远程登录的用户赋予权限:
mysql> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "123456";
mysql> flush privileges;
远程登录命令:
mysql -h 223.4.92.130 -uroot -p(-h后跟的是要登录主机的ip地址)
标签:mysql允许远程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
图文详解OpenCV中光流以及视频特征点追踪
2022-12-30 01:45:08
![](https://img.aspxhome.com/file/2023/6/112466_0s.png)
Python制作进度条的几种方法
2022-03-11 05:36:23
![](https://img.aspxhome.com/file/2023/5/117625_0s.jpg)
python用什么编辑器进行项目开发
2021-04-17 19:25:20
xhEditor的异步载入实现代码
2022-01-29 10:40:28
Python socket实现的简单通信功能示例
2023-03-03 07:49:40
![](https://img.aspxhome.com/file/2023/6/79516_0s.gif)
解析mysql与Oracle update的区别
2024-01-25 01:35:55
python中的生成器实现周期性报文发送功能
2023-02-07 23:15:12
Pandas把dataframe或series转换成list的方法
2022-03-24 23:05:02
Python获取数据库数据并保存在excel表格中的方法
2024-01-22 00:32:56
![](https://img.aspxhome.com/file/2023/2/115112_0s.jpg)
SQL Server 2005 Express版企业管理器下载
2009-10-06 14:54:00
ASP 错误代码
2009-05-11 12:38:00
python把转列表为集合的方法
2021-06-03 07:28:41
Windows和Linux下Python输出彩色文字的方法教程
2021-04-15 11:15:41
![](https://img.aspxhome.com/file/2023/3/121913_0s.png)
《色彩解答》系列之一 色彩层次
2008-02-17 14:26:00
![](https://img.aspxhome.com/file/UploadPic/20082/17/2008217143752778s.gif)
Python迭代用法实例教程
2021-07-18 13:00:45
SQL Server的复制功能
2024-01-16 19:40:27
![](https://img.aspxhome.com/file/2023/1/94401_0s.jpg)
SQL查询语句求出用户的连续登陆天数
2024-01-17 22:00:40
![](https://img.aspxhome.com/file/2023/9/129869_0s.jpg)
asp如何制作一个简单的翻页程序?
2010-06-29 21:26:00
利用Python生成文件md5校验值函数的方法
2023-09-29 14:51:40
swfupload上传使用代码说明ASP版
2011-11-27 09:34:32