Select a MySQL Database on Linux via Command Line

March 5, 2020 Liquid Web

In this video, we describe how to select a MySQL/MariaDB database in Linux via the command line. 

Commands used:
mysql -u root -p
SELECT database();
USE tutorial_database;

mysql> USE tutorial_database;
Database changed

The related article for this article can be found here: https://www.liquidweb.com/kb/select-a-mysql-database-on-linux-via-command-line/

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/.

To learn more about our cloud dedicated offerings, visit: https://www.liquidweb.com/products/dedicated/


Video by: Justin Palmer

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our newsletter to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
List PHP Modules from the Command Line
List PHP Modules from the Command Line

In this video, we describe how to list PHP modules from the command line.

Next Video
Show (List) MySQL Databases on Linux via Command Line
Show (List) MySQL Databases on Linux via Command Line

In this video, we demonstrate to you how to show or list your databases via a command line interface (CLI)....

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now