下载MySQL安装包
放置在/home/mysql_install中
进入/home/mysql_install
# cd /home/mysql_install/
执行安装程序
# rpm –ivh MySQL-server-版本号.rhel5.i386.rpm –nodeps
# rpm –ivh MySQL-client-版本号.rhel5.i386.rpm –nodeps
启动MySQL
# /etc/init.d/mysql start
设置root用户登录密码
# /usr/bin/mysqladmin -u root password 密码
登录
# /usr/bin/mysql -u root –p
登出
mysql>quit
查看端口
# netstat –tuan | grep 3306
参考文章:http://blog.csdn.net/tianlesoftware/article/details/7001808