aptitude install mysql-server mysql-client
安装过程中,要输入MySQL的root用户密码
安装完毕可以用service mysql status 查看运行状态
* /usr/bin/mysqladmin Ver 8.41 Distrib 5.0.51a, for debian-linux-gnu on i486
Copyright (C) 2000-2006 MySQL AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Copyright (C) 2000-2006 MySQL AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Server version 5.0.51a-3ubuntu5.4
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/run/mysqld/mysqld.sock
Uptime: 5 min 49 sec
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/run/mysqld/mysqld.sock
Uptime: 5 min 49 sec
Threads: 1 Questions: 174 Slow queries: 0 Opens: 147 Flush tables: 2 Open tables: 17 Queries per second avg: 0.499
转载于:https://blog.51cto.com/wesoho/200670