How to Drop a MySQL Database on Linux via Command line

We will show you how to drop a database in command line on a linux server with MySQL or MariaDB installed. First you need to log your MySQL/MariaDB mysql -u root -p List all the databases MariaDB> show databases; +——————–+ | Database | +——————–+ | information_schema | | example | | mysql | | performance_schema…

How to Create a MySQL Database on Linux via Command Line

We will show you how to create a database in command line on a linux server with MySQL or MariaDB installed. First you need to log your MySQL/MariaDB mysql -u root -p Create the database In this example, we will create the database “example” MariaDB> CREATE DATABASE example; Check if your database is created MariaDB>…