备忘 !
mysql安装的操作手册:
shell> groupadd mysqlshell> useradd -g mysql mysql
shell> tar vxfz mysql-5.1.34.tar.gz -C /usr/src/
shell> cd /usr/src/mysql-5.1.34/
shell> ./configure --prefix=/usr/local/linxun/mysql/ --enable-assembler --with-charset=utf8 --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile --with-plugins=innobase
shell> make
shell> make install
shell> cp support-files/my-huge.cnf /etc/my.cnf
shell> cd /usr/local/linxun/mysql
shell> vi /etc/my.cnf-----编辑注释掉:skip-federated
shell> bin/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .
shell>cp /usr/src/mysql-5.1.34/support-files/mysql.server /etc/rc.d/init.d/mysqld
shell> chmod +x /etc/rc.d/init.d/mysqld
shell> cp /usr/local/linxun/mysql/bin/* /usr/sbin/