MySQL Forums
Forum List  »  Install & Repo

Re: MySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Posted by: willians nogueira
Date: December 03, 2018 02:03PM

Hi, Peter

we solved the problem in the Java/JDBC forum as follows:

1)Wrong : connection between password + "?useTimezone=true&serverTimezone=UTC"

static String url = "jdbc:mysql://localhost:3306/" + db +"?useSSL=false";

conn=DriverManager.getConnection(url, user, password + "?useTimezone=true&serverTimezone=UTC");

2) Right : connection between db + "?useTimezone=true&serverTimezone=UTC"

static String url = "jdbc:mysql://localhost:3306/" + db +"?useSSL=false&serverTimezone=UTC";

conn=DriverManager.getConnection(url, user, password);

Just returning to you.

Thanks for helping.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
December 03, 2018 02:03PM
January 06, 2019 07:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.