当前位置:Gxlcms > 数据库问题 > ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'

ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'

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

use mysql

mysql> select host, user from user;

将相应用户数据表中的host字段改成‘%‘;

 

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

ERROR 1062 (23000): Duplicate entry ‘%-root‘ for key ‘PRIMARY‘ 不予理会

 

flush privileges;

重新远程连接OK

ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'

标签:error   key   entry   nec   div   应用   pre   dup   not   

人气教程排行