首页 > 技术文章 > ubuntu 14.04安装mysql数据库

justinzhang 2015-05-05 13:56 原文

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

推荐阅读