The installation

Sudo apt-get install mysql-server

validation

After the installation is complete, run the following command to check whether the installation is successful:

systemctl status mysql
Copy the code

See the above information to indicate that MySQL is installed and running.

landing

Sudo mysql -u root -p # -u specify user name -p Require password

mysql>show databases;