Installing MySQL
Hosting.com servers actually use MariaDB, an enhanced drop-in replacement for MySQL.For detailed information about compatibility between MariaDB and MySQL, please visit https://mariadb.com/kb/en/library/mariadb-vs-mysql-compatibility.
- Start the virtual machine, if you haven’t already.
- Log in to the virtual machine as the root user.
-
At the command prompt, type the following command to install MariaDB:
-
At the Is this ok prompt, type
yand then press Enter. The installation process begins. -
After installation completes, type the following command to start MariaDB:
-
To confirm MariaDB is running, type the following command:
You should see Active: active (running) in the output.
-
To make MariaDB start automatically on system boot, type the following command:
-
To secure the installation, type the following command:
This program enables you to set the root MySQL password and other security-related settings.
-
To make sure the root password was set correctly, type the following command:
- Type the root password that you set in step 8, and then press Enter. You should see Welcome to the MariaDB monitor in the output.