当前位置:网站首页>"The specified database user/password combination is rejected..." Solutions for

"The specified database user/password combination is rejected..." Solutions for

2022-06-10 22:21:00 Giant NG

Introduction to the environment

win10 + MySQL 8.0.26 + datagrip 2021.2.2

Problem description

The installation was completed datagrip After that, you can connect to the local network normally MySQL Database for use .

Turn it on again in a few days datagrip I found that the window kept popping : Insert picture description here

It can be seen from the picture that the account and password do not match .

therefore , Get into CMD Window to test , adopt mysql -u -root -p, After entering the password , It is found that the connection is normal , And query the database : Insert picture description here

Even use Navicat for MySQL To test , It is also found that it can be connected normally .

Problem solving

Trying to restart the computer 、 Restart mysql When the local service is still not available , Finally, a problem was found in the background service : Insert picture description here

Here you can see , except MySQL80( install mysql A service name generated when ) Outside this service , One more mysqlzt This service is always running in the background .

It is found by inquiry that mysqlzt It is a background service generated after I deploy the local Zen .

Try to stop the service , stay datagrip Reconnecting in , Found connection successful : Insert picture description here

summary

If the above failure occurs , You can query solutions from these directions :

  1. Ensure local mysql Normal service ;
  2. First, check whether the account name and password are correct : Can pass cmd Or other mysql command line client Do login verification ;( If you forget your password, you can find out how to change it by yourself )
  3. If only a simple one ide Unable to connect , Try something else ide Do a test ;
  4. Query whether there are other services in the local area mysql The port number of the service , If there is , Find out what the service does , Then decide to modify mysql The port number of the conflicting service is also closed directly .
原网站

版权声明
本文为[Giant NG]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206102054002440.html