mysql install steps
the official documents for mysql 5.6 install
key steps:
# Preconfiguration setup shell>groupadd mysql
shell>useradd -r -g mysql mysql
# Beginning of source-build specific instructions shell>tar zxvf mysql-
shell>VERSION
.tar.gzcd mysql-
shell>VERSION
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
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
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。