Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report