MySQL 編譯過程

以下為手動編譯 MySQL 5.x 的過程, 由 MySQL 網站取得.

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> chown -R mysql .
shell> chgrp -R mysql .
shell> bin/mysql_install_db –user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> bin/mysqld_safe –user=mysql &

原文網址: http://dev.mysql.com/doc/refman/5.1/en/quick-install.html

Comments are closed.

十一月 2019
« 五月    
 123
45678910
11121314151617
18192021222324
252627282930  

Google ADs