15 July 2013

Want to check the databases you have created using the MySQL Command Line Client? Use mysql command to connect to mysql server and list available databases.

Source code viewer
  1. # Use mysql command, -u following username and -p to prompt password.
  2. mysql -u username -p
  4. # MySQL query to list all MySQL databases.
  5. show databases;
  7. # Press Ctrl + C to exit, as usual.
Programming Language: Bash