【设置】MySQL允许root远程登录
2021年01月19日 14:39:16 作者:Jiaozn 分类:MySQL 评论(0)> mysql -u root -p -h 10.0.42.180
> mysql -u root -p
mysql> use mysql
mysql> SELECT User, Password, Host FROM user;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
mysql> SELECT User, Password, Host FROM user;
> mysql -u root -p -h 10.0.42.180
除非注明,发表在“Jiaozn的博客”的文章『【设置】MySQL允许root远程登录』版权归Jiaozn所有。
转载请注明出处为“本文转载于『Jiaozn的博客』原地址https://jiaozn.com/reed/626.html”
评论
发表评论