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;

Cette réponse était-elle pertinente? 0 Utilisateurs l'ont trouvée utile (0 Votes)