MySQL 5.0.33 on RHEL 4U5 x86
rpm -e mysql --nodepsgroupadd mysqluseradd -g mysql mysqltar zxvf mysql-5.0.33.tar.gzcd mysql-5.0.33./configure --prefix=/usr/local/mysql --with-charset=utf8 --enable-thread-safe-clientmakemake installsh scripts/mysql_install_db chown -R mysql.mysql /usr/local/mysql/cp support-files/my-medium.cnf /etc/my.cnfcp support-files/mysql.server/etc/rc.d/init.d/mysqldchmod +x /etc/rc.d/init.d/mysqldchkconfig --add mysqldchkconfig --level 35 mysqld onchkconfig --list |grep mysqlservice mysqld start
echo 'export PATH=/usr/local/mysql/bin:$PATH' >> /etc/profilesource /etc/profile
如果连接慢,可在service脚本中添加参数:--skip-name-resolve
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/88421/showart_2183750.html
页:
[1]