首页 > 数据库技术 > 详细

linux下mysql ---- Host '' is not allowed to connect to this MySQL server

时间:2019-12-26 12:26:29      阅读:154      评论:0      收藏:0      [点我收藏+]

mysql>use mysql

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

此时如果提示报错,不用管,继续往下走

select host, user from user;

mysql>flush privileges;  -- * 这一句是刷新刚才的内容  *一定要刷新,因为操作的是系统授权表。

linux下mysql ---- Host '' is not allowed to connect to this MySQL server

原文:https://www.cnblogs.com/morganlin/p/12101081.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!