本文共 2023 字,大约阅读时间需要 6 分钟。
[root@oracle ~]# vi /etc/yum.repos.d/rhel-debuginfo.repo [rhel] name=Red Hat Enterprise baseurl= file://mnt/Server enabled=1 gpgcheck=0 [root@oracle ~]#mount /dev/cdrom /mnt |
yum install gcc* yum install glibc* yum install libc* |
tar –zxvf mysql-5.0.28.tar.gz cd mysql-5.0.28 |
[root@localhost ~]# useradd mysql -g mysql -M -s /sbin/nologin |
[root@localhost src]# cd /usr/local/src/mysql- 5.0.28 [root@localhost mysql- 5.0.28 ]# ./configure –prefix=/usr/local/mysql –with-unix-socket-path=/tmp/mysql.sock –localstatedir=/usr/local/mysql/data –with-charset=gbk –without-debug –enable-assembler |
[root@localhost mysql-4.0.26]# make |
[root@localhost mysql-4.0.26]# make install |
[root@localhost mysql-4.0.26]# ./scripts/mysql_install_db |
[root@localhost mysql-4.0.26]# cp support-files/my-medium.cnf /etc/my.cnf |
[root@localhost mysql-4.0.26]# cp support-files/mysql.server /etc/init.d/mysqld |
[root@localhost mysql-4.0.26]# chmod 700 /etc/init.d/mysqld [root@localhost mysql-4.0.26]# cd /usr/local [root@localhost local]# chmod 750 mysql –R |
[root@localhost local]# chown -R mysql.mysql /usr/local/mysql [root@localhost local]# chown -R mysql.mysql /usr/local/mysql/data |
[root@localhost libexec]# chkconfig –add mysqld [root@localhost libexec]# chkconfig –level 345 mysqld on |
root@localhost libexec]# mysql |