Get a VPS server with a 15% discount
Sale ends in
00Days
:
00Hours
:
00Minutes
:
00Seconds

Installing and configuring MySQL (MariaDB)

MySQL is a free relational database management system.

First, update the system package and repository lists:

Add the MariaDB repository:

Install MariaDB:

Next, start the client using the following command:

The ";" character is required in SQL queries.

Select the MySQL system database:

Create the first user:

Now create a database:

Use the following two commands to grant the user access to the database:

Opening the database for external access

If you need to connect to MySQL from a host other than localhost, edit /etc/mysql/my.cnf and find the bind-address line so that it looks as follows:

Restart MySQL: