Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Access denied for user 'root'@'localhost' (using p

Shulou Source: shulou.com Published: 2022-06-03 05:30:09 11月24日 Update

Exception message:

Access denied for user 'root'@'localhost' (using password: YES)

Java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

ERROR c.alibaba.druid.pool.DruidDataSource-init datasource error, url

Cause of exception:

Checked a lot of blog forums, all said that the reason is that url is wrong

Carefully checked url, username, password, no problem.

Can only follow the hint, try to change the MySQL account password, and finally got it.

Solution:

Change MySQL's root account password.

Specific reference:

You can enter directly on the windows command line:

Mysqladmin-uroot-p Old password password New password

Note:

Enter directly after typing, there is no need to enter a semicolon.

Tags: Password reason account input information blog command method result forum question new secret reference prompt check Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information MariaDB Linux macOS Docker