当前位置:Gxlcms > 数据库问题 > linux 版mysql开启远程登陆

linux 版mysql开启远程登陆

时间:2021-07-01 10:21:17 帮助过:3人阅读

1  登陆数据库  

mysql -u root -p 

2 use mysql;

3 select  User,authentication_string,Host from user  (查询用户表)

4 GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123456‘    

5 flush privileges;   (实时生效)6 select  User,authentication_string,Host from user  (再次查看用户表) 

linux 版mysql开启远程登陆

标签:auth   ati   from   root   ESS   rom   cat   ant   sql   

人气教程排行