您的位置:首页 > 数据库 > MySQL

Mysql无法远程连接问题终结版

2016-09-16 08:55 387 查看
打开第一个会话窗口

/etc/init.d/mysql stop   (service mysqld stop )

/usr/bin/mysqld_safe --skip-grant-tables

打开新的会话窗口

[root@localhost ~]# mysql

mysql>use mysql

mysql>update user set password=password("123456") where user="root";

mysql>flush privileges;

mysql>exit

问题:HOSt ip is not allowed to connect to this MySql server

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

 

mysql>flush privileges;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: