When I used DataGrip to connect to the MySQL database, I encountered the following problem after clicking Test Connection:
The specified database user/password combination is rejected: [28000][1045] Access denied for user 'root'@'localhost' (using password: YES)
Translated it is:
The reason why I have this problem:
The MySQL port number is occupied.
First, I searched for cmd in the search bar in the lower left corner of the computer and opened the DOS window;
Enter the command netstat -ano|findstr port number name ; check what process IDs occupy 3306? The query results are two: 16560 and 27320 ;
Then, I searched for Task Manager in the search bar in the lower left corner of the computer and opened it;
Click on the service and find the process ID occupying port number 3306. It is found that one of them is MySQL (16560 ) , and the other is the service mysqlzt (27320 ) generated when installing ZenTao ;
Solution:
The port number of MySQL is 3306, and the default port number of ZenTao is also 3306; their two port numbers conflict.
1. Open the search service in the search bar in the lower left corner of the computer ;
2. Find mysqlzt in the service , right-click to stop (O) and it will be OK.
Then you can connect successfully! ! !
over. . .