the official documents for mysql 5.6 install
key steps:
# Preconfiguration setup shell>groupadd mysqlshell>useradd -r -g mysql mysql# Beginning of source-build specific instructions shell>tar zxvf mysql-shell>VERSION.tar.gzcd mysql-shell>VERSIONcmake .shell>makeshell>make install# End of source-build specific instructions # Postinstallation setup shell>cd /usr/local/mysqlshell>chown -R mysql .shell>chgrp -R mysql .shell>scripts/mysql_install_db --user=mysqlshell>chown -R root .shell>chown -R mysql datashell>bin/mysqld_safe --user=mysql &# Next command is optional shell>cp support-files/mysql.server /etc/init.d/mysql.server
mysql_install_db creates
a default option file named my.cnf in the base installation directory.
This file is created from a template included in the distribution package
named my-default.cnf. For more
information, seeSection 5.1.2.2,
“Using a Sample Default Server Configuration File”.
more details for the install steps:
http://dev.mysql.com/doc/refman/5.6/en/installing-source-distribution.html
原文:http://www.cnblogs.com/argb/p/3534263.html