Ubuntu 14.04 Install MySQL

1.更新源

sudo apt-get update

2.安装MYSQL

sudo apt-get install mysql-server

3.输入root用好的密码,并按确定键继续安装

4.检查msql服务是否启动,并登录mysql

Ubuntu 14.04 Install MySQL

Ubuntu 14.04 Install MySQL
5.停止MySQL服务

sudo service mysql stop

#mysql stop/waiting

6.启动MySQL服务

sudo service mysql start

#mysql start/running, process 7061

7.重启MySQL服务

sudo service mysql restart

#mysql stop/waiting

#mysql start/running, process 7221

相关推荐