
You should see all databases in the following output: +-+

Next, list all available databases with the following command: mysql> show databases Once you are logged in, you should see the following output: To do so, log into the MySQL console with the root user using the following command: mysql -u root -p MySQL databases can also be deleted after logging into the MySQL shell.
#Mysql list databases on server how to#
How to Install and Use MySQL Workbench on Ubuntu 18.04 Delete MySQL Database within MySQL Console You should see the following output: Dropping the database is potentially a very bad thing to do.Īny data stored in the database will be destroyed.ĭo you really want to drop the 'drupaldb' database y Now, pick the drupaldb database from the above list and delete it by running the following command: mysqladmin -u root -p drop drupaldb You will get a list of all databases in the following output: +-+ Mysqladmin is a MySQL built-in command-line utility that allows you to create and delete MySQL databases, check MySQL processes, and set a MySQL root password via a command-line interface.įirst, use the following command to list all available databases in your system: mysqlshow -u root -p Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page. Create a new server, choosing any Linux operating system with at least 1GB RAM.

You must have a MySQL user account with delete privileges to delete a MySQL database from your system. You can either use the MySQL command-line or phpMyAdmin to delete a MySQL database. There are several ways to delete a MySQL database in Linux. If you are a database or Linux system administrator, then you may often need to delete unwanted databases from your system.
