ubuntu 14.04安装mysql数据库

1. apt-get install mysql-server mysql-client

输入root的密码:

image

确认root的密码:

image

2. 连接测试是否成功:mysql –hlocalhost –uroot –p

image

3.  ps –ef | grep mysql 查看mysql的运行情况

image

4. mysql重启, service mysql restart    在提示信息中可以看到mysql的进程号:

image

原文地址:https://www.cnblogs.com/justinzhang/p/4478950.html