ubuntu下源码安装mysql-5.1.34

shell> su root
passwd: your_passwd
shell> groupadd mysql
shell> tar zxvf mysql-5.1.34
shell> cd mysql-5.1.34
shell> ./configure --prefix=/usr/local/mysql --enable-asserbler --with-extra-charsets=all --with-plugins=all
shell> make -j 8
shell> make install
shell> mkdir /usr/local/mysql/etc
shell> cp suport-files/my-medium.cnf /usr/local/mysql/etc/my.cnf
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> bin/mysql_install_db --user=mysql --defaults-file=/usr/local/mysql/etc/my.cnf
shell> chown -R root .
shell> chown-R mysql var
shell> /usr/local/mysql/mysqld_safe --defaults-file=/usr/local/mysql/etc/my.cnf --user=mysql &

你可能感兴趣的:(mysql)