当前位置:网站首页>datagrip 报错 “The specified database user/password combination is rejected...”的解决方法
datagrip 报错 “The specified database user/password combination is rejected...”的解决方法
2022-06-10 20:54:00 【Giant NG】
环境介绍
win10 + MySQL 8.0.26 + datagrip 2021.2.2
问题描述
本来安装完 datagrip 后可以正常连接本地 MySQL 数据库进行使用。
过几天重新开机后打开 datagrip 发现一直弹窗:
从图片可以看出来描述的是账户与密码不匹配。
于是,进入 CMD 窗口进行测试,通过 mysql -u -root -p,输入密码后,发现可以正常连接,并查询数据库:
甚至使用 Navicat for MySQL 进行测试,也发现可以正常连接。
问题解决
在尝试电脑重启、重新停启 mysql 本地服务依然不行的情况下,终于在后台服务发现了一个问题:
这里可以看到,除了 MySQL80(安装mysql时生成的一个服务名称) 这个服务外,还有一个 mysqlzt 这个服务一直在后台运行。
经查询发现 mysqlzt 是我部署本地禅道后生成的一个后台服务。
尝试将该服务停止,在 datagrip 中重新连接,发现连接成功:
总结
如果出现上述失败的情况,可以从这几个方向查询解决方法:
- 确保本地的 mysql 服务正常;
- 先确定账户名与密码是否无误:可以通过 cmd 或者其他 mysql command line client 进行登录验证;(如果忘记密码可以自行查询如何修改密码)
- 如果只是单纯的某个 ide 无法连接,尝试用别的 ide 做测试;
- 查询本地中是否有其他服务占用了 mysql 服务的端口号,如果有,把该服务找出来并确定其作用是什么,再决定修改 mysql 的端口号还是直接将冲突的服务关闭。
边栏推荐
- CentOS7安装MySQL8的超级详细教程(无坑!)
- C语言判断文件或文件夹是否存在
- 数组 两个数组的交集 II
- Qingniao Changping campus of Peking University: can I learn UI with a high school degree?
- 数组 移动0
- 在Oracle表中进行关键词搜索的过程
- 【Microsoft Azure 的1024种玩法】七十五.云端数据库迁移之快速将阿里云RDS SQL Server无缝迁移到Azure SQL Databas
- Mysql中创建4种索引的不同方式
- 【C#】overide可重写从更高父级继承来的virtual方法
- 数组 只出现一次的数字
猜你喜欢
随机推荐
Has the samesite cookie problem occurred when using identityserver?
Understanding of related concepts of target detection
KDD2022 | 基于对抗性知识蒸馏的深度图神经网络压缩
Interpreting the new ecology of education in maker space
Icml2022 | sharp maml: model independent meta learning for sharpness perception
Array rotates the array from bits of the specified length
NFT版权/版税
C语言判断文件或文件夹是否存在
In 2021, the average salary will be released, and the IT industry will not be surprised
2022-06-09 RK817 PMU 电池温度检测
Ajout, suppression et modification des données du tableau [MySQL] (DML)
PHP pseudo protocol implementation command execution details
MySQL范围查询优化的场景实例详解
I'm doing something cool
Shaping teenagers' comprehension ability with children's programming thinking
Forward slash "/", backslash "\," escape character "\" and file path separator cannot be clearly remembered
How to realize the marketing purpose of small program integral mall
Self made table
[nk] Niuke monthly competition 51 f-average question
【MySQL】表的约束








