C:/>mysql -uroot -p
Enter password:
Welcome to the MySQL monitor Commands end with ; or /g
Your MySQL connection id is 2
Server version: 5122-rc-community-log MySQL Community Server (GPL)
Type 'help;' or '/h' for help Type '/c' to clear the buffer
mysql> grant all privileges on to 'yourname'@'%' identified by 'youpasswd'; //密码为必填项
Query OK, 0 rows affected (005 sec)
mysql> flush privileges;
Query OK, 0 rows affected (006 sec)
重启mysql就可以外网访问了
如果有防火墙记得要把3306端口放出去
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)