centos mysql源码包tar.gz安装mysql 5.6

centos mysql源码包tar.gz安装mysql 5.6
http://dev.mysql.com/doc/refman/5.6/en/binary-installation.html

http://www.cnblogs.com/rond/p/3709164.html



mysql-5.6.30-linux-glibc2.5-x86_64.tar.gz


Debug versions of the mysqld binary are available as mysqld-debug. To compile your own debug version of MySQL from a source distribution, use the appropriate configuration options to enable debugging support. See Section 2.9, “Installing MySQL from Source”.

To install and use a MySQL binary distribution, the command sequence looks like this:

   
   
   
   
shell> groupadd mysql
shell> useradd -r -g mysql -s /bin/false mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd 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 -u  root -p
无密码直接回车

你可能感兴趣的:(centos mysql源码包tar.gz安装mysql 5.6)