mysql download url:http://dev.mysql.com/downloads/mysql/5.1.html
连接到官网后下载适合你系统内核的 mysql 版本 我用的是RedHat Enterprise5 Server
下载后安装:
注释:Type the following command as root user
也就是说以下命令适合root用户,如果不是,su 一下
#yum install mysql-server mysql
上一步成功后执行下面的命令:
Start MySQL Service
To start mysql server type the following command;
#chkconfig mysql on
#/etc/init.d/mysqld start
注解:以上两条命令分别是开机启动 MySQL 服务 启动MySQL
上一步成功后执行下面命令:
Setup Mysql root password
Type the following command to setup a password for root user
#mysqladmin -u root password newpassword
注释:以上命令主要是为了安全其间重新设置 root 用户的 密码
上一步成功后执行下面命令:
Test mysql connectivity
Type the following command to connect to MySQL server;
#mysql -u root -p
注释:以上命令为连接数据库。至此数据库已经成功安装了!


pinla 于 2009-07-08 09:14:58发表:
学习了