sql 1130 is not allowed to connect to this MySQL

例如,你想root使用123456从任何主机连接到mysql数据库的话。

mysql> GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123456‘ WITH GRANT OPTION;

Query OK, 0 rows affected (0.00 sec)


mysql> FLUSH PRIVILEGES;

Query OK, 0 rows affected (0.03 sec)




sql 1130 is not allowed to connect to this MySQL,布布扣,bubuko.com

sql 1130 is not allowed to connect to this MySQL

上一篇:SQL中@@ROWCOUNT函数


下一篇:sqlite学习笔记6:更新表数据