mysql 开通远程连接

Posted liuyanerfly

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 开通远程连接相关的知识,希望对你有一定的参考价值。

1、mysql -u root -p

输入密码

2、use mysql

3、select host,user,authentication_string from user;

4、update user set host=‘%‘ where user = ‘root‘;

5、grant all privileges on *.* to [email protected]‘%‘ identified by "password";

6、flush privileges;

 

以上是关于mysql 开通远程连接的主要内容,如果未能解决你的问题,请参考以下文章