install mysql from source

netwant發表於2013-08-22
linux mysql 5.6 source code install[@more@]
# isntall cmake
shell>tar -zxvf cmake.tar.gz
shell>./bootstrap
shell>make
shell>make install
# Preconfiguration setup
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/309902/viewspace-1060871/,如需轉載,請註明出處,否則將追究法律責任。

相關文章