java.sql.sqlexception: access denied for user

Hello readers! In this post I have shared the details about “java.sql.sqlexception: access denied for user”. Okay, let’s move on to the tutorial.

java.sql.sqlexception: access denied for user

You have to grant priviliges to root@localhost
e.g 
GRANT ALL PRIVILIGES ON *.* TO 'root'@'localhost' IDENTIFIED BY password

(*.*: means everything, it can be modified to some specific DB or opertations)

Final Words

I hope this tutorial helps you to know about “java.sql.sqlexception: access denied for user”. If you have any doubts regarding this post please let us know via the comment section. Share this post with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment