红联Linux门户
Linux帮助

mysql授权远程连接

发布时间:2016-06-08 10:02:10来源:linux网站作者:风行天下——

查一下你的MYSQL用户表里, 是否允许远程连接。以下是实现mysql授权远程连接的两个步骤。


1、授权
mysql>grant all privileges on *.*  to  'root'@'%'  identified by 'youpassword'  with grant option;
mysql>flush privileges;


2、修改/etc/mysql/my.conf
找到bind-address = 127.0.0.1这一行
改为bind-address = 0.0.0.0即可。


本文永久更新地址:http://www.linuxdiyf.com/linux/21335.html