下载合适的rpm包到待安装临时目录,比如/home/software/,本文用的是MySQL-server-5.0.22-0.i386.rpm安装包,
安装过程如下:
# cd /home/software
# rpm -ivh MySQL-server-5.0.22-0.i386.rpm
如果提示如下错误:
warning: mysql-3.23.54a-11.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
perl(CGI) is needed by mysql-3.23.54a-11
perl-DBD-MySQL is needed by mysql-3.23.54a-11
则需要加参数,进行强制安装:
# rpm -ivh MySQL-server-5.0.22-0.i386.rpm --force --nodeps
最后如果出现如下提示:
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [100%]
071016 9:27:51 [Warning] Asked for 196608 thread stack, but got 126976
071016 9:27:51 [Warning] Asked for 196608 thread stack, but got 126976
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting MySQL[ OK ]
那么恭喜你,安装成功,而且mysql会自动启动。
你可以利用上面的几种方法启动和停止mysql,也可以利用
#service mysql start
#service mysql stop
来启动和停止服务

Ubuntu下安装PostgreS
Sybase 11.9.2 For Li
MySQL最新版安装图解
开源DRBD 助力 MySQL
Oracle10g EM出现乱码
Fedora8下安装ORACLE1
MySQL数据库的安装操
RedHat Linux 9.0下安