To install MySQL on your Ubuntu server follow the steps below:

1. First, update the apt package index by typing:

$sudo apt update

2. Then install the MySQL package with the following command:


$sudo apt install mysql-server

3. Once the installation is completed, the MySQL service will start automatically. To check whether the MySQL server is running, type:

$sudo systemctl status mysql
Output :
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2018-06-20 11:30:23 PDT; 5min ago
 Main PID: 17382 (mysqld)
    Tasks: 27 (limit: 2321)
   CGroup: /system.slice/mysql.service
           `-17382 /usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid
Tagged:

Laisser un commentaire