2017年12月

MySQL环境搭建

安装MySQL:sudo apt install mysql-server mysql-client

验证MySQL已启动:sudo netstat -anp | grep mysql

启动MySQL(三种均可):

sudo service mysql start
sudo /etc/init.d/mysql start
sudo systemctl start mysql.service

查看MySQL运行状态(三种均可):

service mysql status
/etc/init.d/mysql status
systemctl status mysql.service

阅读全文