好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

mysql开启远程访问 - mysql数据库栏目 - 自学php

mysql -uroot -p

输入密码,执行下面这条语句

grant all privileges on *.* to ‘user‘@’%‘ identified by ‘password‘ with grant option;

其中,user是用户名,mysql默认的是root ,password是密码自己设置 。%表示任意主机。这样就允许远程任意一台主机访问了。

查看更多关于mysql开启远程访问 - mysql数据库栏目 - 自学php的详细内容...

  阅读:54次