ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMAR

2023-01-10数据库
627

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='root';
ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY' 不予理会
flush privileges;
重新远程连接OK
The End

相关推荐

liunx mysql root账户提示:Your password has expired. To log in yo
liunx mysql root账户提示:Your password has expired. To log in you must change it using a client that supports expired passwords,要怎么操作呢? 1、修改 /etc/my.cnf,在 [mysqld] 小节下添加一行:skip-grant-tables=1 这一行配置让 mysqld 启动...
2024-12-24 数据库
149

VMware中安装CentOS7(设置静态IP地址)并通过docker容器安装mySql数据库(超详细教程)
首先在官网下载CentOS7镜像,并在VMware虚拟机中新建一台CentOS7虚拟机,将镜像挂载到虚拟机中并启动。...
2023-12-07 数据库
11

SpringBoot项目报错:”Error starting ApplicationContext̷
首先,当我们使用Spring Boot开发项目时,可能会遇到Error starting ApplicationContext错误,一般这种错误是由于配置文件、依赖包或者代码逻辑等原因引起的。下面我将提供一条包含两条详细示例说明的完整攻略,用来解决上述问题。...
2023-12-07 数据库
489

CentOS 7.9服务器Java部署环境配置的过程详解
下面是CentOS 7.9服务器Java部署环境配置的完整攻略:...
2023-12-07 数据库
101

SVN报错:Error Updating changes:svn:E155037的解决方案
针对这个问题,我可以如下详细讲解解决方案的完整攻略:...
2023-12-07 数据库
566

MyBatis中正则使用foreach拼接字符串
MyBatis中可以使用foreach拼接字符串,其中正则表示式在构建动态SQL时特别有用。以下是使用foreach拼接字符串的步骤:...
2023-12-07 数据库
398