Hello, World!

Redhat Linux Enterprise 5 上安装 MySQL

下载MySQL安装包

放置在/home/mysql_install中

clip_image002

进入/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

clip_image004

登出

mysql>quit

查看端口

# netstat –tuan | grep 3306

clip_image006

 

参考文章http://blog.csdn.net/tianlesoftware/article/details/7001808

posted @ 2012-05-31 17:16  hayukleung  阅读(304)  评论(1编辑  收藏  举报

See you, World!