当前位置:网站首页>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语言-排序中的快速排序(简称快排)
- String analysis and use
- [nk] 牛客月赛51 G计算题
- SQL第四练:字符串处理函数
- Only three steps are needed to learn how to use low code thingjs to connect with Sen data Dix data
- AI blessing real-time interaction | analysis of zegoavatar facial expression following technology
- Principle of gravure overprint and factors affecting overprint
- Array rotate array
- C language -- 1 c language cognition
- 【Microsoft Azure 的1024种玩法】七十五.云端数据库迁移之快速将阿里云RDS SQL Server无缝迁移到Azure SQL Databas
猜你喜欢

ThinkPHP v6.0.x反序列化漏洞复现
php伪协议实现命令执行详情

Introduction to abbexa bacterial genome DNA Kit

JS mobile terminal copy text to clipboard code

Abbkine column exkine Pro animal cell / tissue Total Protein Extraction Kit
![在D天内送达包裹的能力[抽象类二分--抽象判定方式]](/img/16/026c017e1c54d580fa2d237aa4605c.png)
在D天内送达包裹的能力[抽象类二分--抽象判定方式]

2022-06-09 RK817 PMU 电池温度检测

解读创客空间下的教育新生态
一次SQL查询优化原理分析(900W+数据从17s到300ms)
SQL Server2019安装的详细步骤实战记录(亲测可用)
随机推荐
[qingniaochangping campus of Peking University] the coordinated development of vocational education and general education, will this year's high school entrance examination be easy?
Summary of common mysql8 commands in centos7 environment
数组 只出现一次的数字
【MySQL】錶數據的增删查改(DML)
C中字符串查找
【C#】overide可重写从更高父级继承来的virtual方法
Array remove duplicates from an array
[1024 ways to play windows azure] 75 Fast cloud database migration seamlessly migrate alicloud RDS SQL server to azure SQL databas
数组 求上升区间的高度和
Detailed steps and actual records of SQL server2019 installation (available for hands-on test)
关于type-c
解读创客空间下的教育新生态
The system needs to scan all the files and try to identify the cover of the video
Abbexa 1,3-dipalmitonin CLIA kit solution
What do software test engineers do?
ThinkPHP v6.0.x反序列化漏洞复现
Mysql之將查詢結果插入到其它錶中
To do desktop plug-in, a good helper for office workers
数组 是否存在重复元素
C use s7 Net connected to Siemens s1200plc, C # directly connected to Siemens PLC