mysql 授权root账户 远程连接权限

mysql 默认关闭远程连接  开启连接权限

 

mysql -u root -p"youpassword"

mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;

重载授权表:

FLUSH PRIVILEGES;

退出mysql数据库:

exit

你可能感兴趣的:(mysql)