mysql的windows版本开启远程

 

先cd进入mysql 的bin目录下

1、mysql -u root -p
2、use mysql
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'LancooECP' WITH GRANT OPTION;
flush privileges;
select host,user from user;

你可能感兴趣的:(mysql远程)