ERROR 1130: Host '192.168.10.173' is not allowed to connect to this MySQL ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'ERROR 1130: Host 192.168.10.173 is not allowed to connect to this MySQL ERROR 1062 (23000): Duplicate entry %-root for key PRIMARY mysql -u root -p--输入密码use mysql;mysql select host, user from user; 将相应用户数据表中的host字段改成%; update user set host='%' where user=
mysql -u root -p
-->输入密码
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 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'解决方法
猜你喜欢
- Oracle 删除大量表记录操作分析总结 2023-07-23
- Numpy中如何创建矩阵并等间隔抽取数据 2023-07-28
- SQL Server 2022 AlwaysOn新特性之包含可用性组详解 2023-07-29
- MySQL8.0.28安装教程详细图解(windows 64位) 2023-07-26
- Mongodb启动报错完美解决方案:about to fork child process,waiting until server is ready for connections. 2023-07-16
- redis清除数据 2023-09-13
- SQLSERVER调用C#的代码实现 2023-07-29
- 在阿里云CentOS 6.8上安装Redis 2023-09-12
- 基于Python制作一个简单的文章搜索工具 2023-07-28
- 搭建单机Redis缓存服务的实现 2023-07-13