Access denied for user 'ODBC'@'localhost' What to do?

Haven't used mySql for a long time. When I used jHispter to create a project with MySql as the database yesterday, I found that it always reported an error when running:

Eclipse console shows: Access denied for user 'root'@'localhost'. Then I went to the console and used the mysql command. The discovery also shows: Access denied for user 'ODBC'@'localhost'.

 

 

Solution:

Input: mysql -u root -p

Then go ahead and enter your password. okay!

 
 

And how to change the root password?

method:

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326185914&siteId=291194637