mysql设置远程可访问

Posted 二哈666欸

tags:

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

mysql -u root -p

use mysql;

select host, user, authentication_string, plugin from user

grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘password‘;//设置所有人可访问

flush privileges;//刷新

 

 

 

以上是关于mysql设置远程可访问的主要内容,如果未能解决你的问题,请参考以下文章