1. 程式人生 > >mysql開啟遠程連接權限

mysql開啟遠程連接權限

不能 date rom 權限 sele HERE flush nbsp 5.7

MySQL>update user set host = ‘%‘ where user = ‘root‘;

MySQL>select host, user from user;

MySQL>GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘mypassword‘ WITH GRANT OPTION;

MySQL>FLUSH PRIVILEGES;

分號不能少

mysql版本5.7

mysql開啟遠程連接權限