The steps are simple and there are many online tutorial posts.
Open Terminal
sudo apt-get update
sudo apt-get install mysql-server installation MySQL Service
sudo service MySQL status to see if the MySQL state is running
[email protected]:~$ sudo service MySQL status mysql.service-mysql Community Server loaded:loaded (/lib/systemd /system/mysql.service; Enabled Vendor Preset:e Active:active (running) since Sun 2017-12-31 02:03:26 CST; 2min 0s ago Main pid:19742 (mysqld) tasks:28 (limit:19660) CGroup:/system.slice/mysql.service└─19742/ Usr/sbin/mysqld12 02:03:24 Ubuntu systemd[1]: Starting MySQL Community Server ... December 02:03:26 ubuntu systemd[1]: Started MySQL Community server.lines 1-10/10 (END) ... skipping ... Mysql.service-mysql Community Server loaded:loaded (/lib/systemd/system/mysql.service; enabled; vendor Preset:enab LED) Active:active (running) since Sun 2017-12-31 02:03:26 CST; 2min 0s ago Main pid:19742 (mysqld) tasks:28 (limit:19660) CGroup:/system.slice/mysql.service└─19742/ Usr/sbin/mysqld12 02:03:24 Ubuntu systemd[1]: Starting MySQL Community Server ... December 02:03:26 ubuntu systemd[1]: Started MySQL Community Server.
Test:
Connect to MySQL
Do it.
Other operations:
ubuntu-v17.10 Installing MySQL 5.7