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)
Question posted in PhpMyAdmin
The official documentation can be found here.
The official documentation can be found here.
2
Answers
Yes. You can connect to the server without specifying the database in the connection url.
The only comment is that if you know the username and password, I’d edit to those details.