源碼安裝步驟
root 登陸,執行如下步驟:
shell> groupadd MySQL
shell> useradd -g mysql MySQL
shell> gunzip < MySQL-VERSION.tar.gz | tar -xvf -
shell> cd MySQL-VERSION
shell> ./configure --prefix=/usr/local/MySQL
shell> make
shell> make install
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cd /usr/local/MySQL
shell> bin/mysql_install_db --user=MySQL
shell> chown -R root .
shell> chown -R MySQL var
shell> chgrp -R MySQL .
bin/mysql_install_db --user=MySQL