MariaDB – How to Change Database in SSH InMotion Hosting ContributorUpdated on June 12, 2023 1 Minute Read Working with MariaDB is in many ways the same as working with MySQL. You will be using a lot of the same commands and operations. As you may already know from working in MySQL, you must select a database to work with in order to perform various functions. Of course, you cannot work on multiple databases at once, you must select which database at a time with which you will be working. So in this article, you will see how to select and change an active database in MariaDB. How to Change Databases on the MariaDB Command Line How To Exit MariaDB Command Line How to Change Databases on the MariaDB Command Line First, you must log into your server using SSH. Then, as usual, log into the MariaDB command prompt: mysql -u <username> -p Replace <username> with your actual username and provide your password. In case you can’t remember the specific name of the database you want to use, you can always show databases with this command: SHOW DATABASES; You can both select and switch between databases using the “use” command, as seen below: USE <databasename>; At any point during your work you can “show” all databases with SHOW DATABASES; and select a different database with USE <databasename>; — of course, substituting <databasename> with the actual name of the database you want to use. How To Exit MariaDB Command Line Now that you have completed your work on the command line, you will want to exit the MariaDB command prompt and return to your standard shell prompt. For most terminal emulators, you can exit the MariaDB command line by pressing Ctrl-D on your keyboard or type exit in lower case and hit <Return> or <Enter>. Summarize and Research with AIShare on Social Media InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles SSL Certificate Lifetimes Shrink to 47 Days by 2029 Installing SSLs and Generating CSRs in cPanel How to Upload Large Files Without FTP Timeouts eCommerce – Setup your Merchant Account Gateway How to Zip and Unzip Files on Windows 11 and Windows 10 How to Transfer and Backup Website Files with Rsync .htaccess File Reference List: Rules, Fixes, and Uses How to Force a File Download With .htaccess Redirecting Visitors to an Under Construction Page How to Force www and non-www on Your Domain with .htaccess