Skip to content
Advertisement

Checking connection to MySQL (Java)

I’m working on creating my little-utility for MySQL, and I need some help.
How I can check connection to MySQL (by login and password), like it was realised in phpMyAdmin, without pointing some database at first. Because most of solutions for work with databases need exactly that pointing.
Thanks in advance)

Advertisement

Answer

Yes. You can connect to the server without specifying the database in the connection url.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement