(1)在线安装:sudo apt-get install mysql-server
(2)管理mysql: sudo /etc/init.d/mysql start===========>开启mysql
/etc/init.d/mysql start|stop|restart|reload|force-reload|status
(3)使用mysql: mysqladmin -u root password "zhoulikai" ========>修改myql密码
mysql -u root -p =================>连接本地mysql
转载于:https://www.cnblogs.com/zhoulikai/p/3204920.html