mysql开启外网访问

mysql> mysql -u用户名 -p用户密码
mysql> GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘我是密码‘ WITH GRANT OPTION;
mysql> flush privileges;
 
mysql> net stop mysql
mysql> net start mysql

相关推荐