(1) Installation
sudo apt-get update // get the latest software source sudo apt-get install mysql-server # install mysql
Will set the root password after installation
(2) Start mysql
Content starts automatically after installation mysql, enter the code to view the next successful start, mysql node is displayed indicating a successful start LISTEN
sudo netstat -tap | grep mysql
Attach startup and shutdown command mysql
service mysql start
service mysql stop
(3) into the shell interface
mysql -u root -p