Answer the question
In order to leave comments, you need to log in
Java+MSQL: jdbc doesn't read options from my.ini/my.cnf?
Hey!
Registered user / pass in the file C: / my.ini
[client]
user=root
password=123456
SQLException: Access denied for user ''@'localhost' (using password: NO)
DriverManager.getConnection("jdbc:mysql://localhost:3306/mydb")
Answer the question
In order to leave comments, you need to log in
MySQL does not store usernames/passwords in the config file. Everything lies in a special table in MySQL itself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question