Quick Answer: How Do I Find the Database Name in Linux?
Contents

How can I see database in Linux?

The mysql command

  1. -h followed by the server host name (csmysql.cs.cf.ac.uk)
  2. -u followed by the account user name (use your MySQL username)
  3. -p which tells mysql to prompt for a password.
  4. database the name of the database (use your database name).

How do I find my database in terminal?

To list all databases in MySQL, run the following command: mysql> show databases; This command will work for you no matter if you have an Ubuntu VPS or CentOS VPS. If you have other databases created in MySQL, they will be all listed here.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest