分类: Mysql/postgreSQL
2009-05-31 13:49:44
一.环境
[root@TEST run]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 8)
[root@TEST run]# uname -a
Linux TEST 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686 i686 i386 GNU/Linux
mysql版本是 5.0.26-standard
二.安装
1.创建mysql用户和mysql组
[root@TEST home]# groupadd mysql
[root@TEST home]# useradd -g mysql mysql
2.将mysql安装包解压到指定目录
[root@TEST home]# tar -zxvf mysql-standard-5.0.26-linux-i686.tar.gz -C /usr/local/
3.如果以前没有安装过mysql,就必须创建mysql授权表
[root@TEST home]# cd /usr/local/
[root@TEST local]# cd mysql
[root@TEST mysql]# scripts/mysql_install_db --user=mysql