当前位置:网站首页>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 的端口号还是直接将冲突的服务关闭。
边栏推荐
- C language -- 11 branch statement if else
- AI blessing real-time interaction | analysis of zegoavatar facial expression following technology
- 字符串 反转
- C use s7 Net connected to Siemens s1200plc, C # directly connected to Siemens PLC
- KDD2022 | 基于对抗性知识蒸馏的深度图神经网络压缩
- SQL Server2019安装的详细步骤实战记录(亲测可用)
- Are you still writing the TS type code
- SQL Server row to column (pivot), column to row (unpivot)
- The system needs to scan all the files and try to identify the cover of the video
- [nk] 牛客月赛51 G计算题
猜你喜欢

C language - quick sorting in sorting

【MySQL】表的约束

OC swift hybrid

Abbexa AML1 DNA binding ELISA Kit instructions
一次SQL查询优化原理分析(900W+数据从17s到300ms)

Forward slash "/", backslash "\," escape character "\" and file path separator cannot be clearly remembered

C language ---9 first knowledge of macros and pointers

C use s7 Net connected to Siemens s1200plc, C # directly connected to Siemens PLC

解读创客空间下的教育新生态
![[nk] Niuke monthly competition 51 f-average question](/img/b3/c36a0032e606f38fdc2f7c4562713c.png)
[nk] Niuke monthly competition 51 f-average question
随机推荐
在D天内送达包裹的能力[抽象类二分--抽象判定方式]
在模仿学习中进步的智能机器人
Factory and strategy mode implementation scheme of coupons
C language -- 7 operators
Abbexa 8-OHdG CLIA kit solution
目标检测相关概念的理解
Array move 0
OC swift hybrid
[nk] Niuke monthly competition 51 f-average question
C语言-排序中的快速排序(简称快排)
构建幼儿Steam教育实施策略
【生成对抗网络学习 其一】经典GAN与其存在的问题和相关改进
Array remove duplicates from an array
【MySQL】表结构的增删查改操作(DDL)
Ajout, suppression et modification des données du tableau [MySQL] (DML)
C language ---9 first knowledge of macros and pointers
Array intersection of two arrays II
Kdd2022 | neural network compression of depth map based on antagonistic knowledge distillation
C language ---5 initial string, escape character and comment
AI blessing real-time interaction | analysis of zegoavatar facial expression following technology