First, you have to login into the MySQL server through this command line:

# mysql -u root -p *****

where,
-u option is for username and -p option is for the password.



Now, you can open MySQL prompt:

# mysql>

To list all databases available:

# SHOW DATABASES;

Esta resposta lhe foi útil? 0 Usuários acharam útil (0 Votos)