Install mysql 5.6 in linux enterprise 5

Source: Internet
Author: User

In linux enterprise 5, mysql 5.6 is installed with cmake after mysql 5.5. cmake is an essential tool for installing mysql 5.5. Install cmake as follows. Download the source code installation package from the cmake website [root @ localhost ~] # Wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz [Root @ localhost ~] # Tar cmake-2.8.10.2.tar.gz zxvf [root @ localhost ~] # Cd cmake-2.8.10.2 [root @ localhost ~] #./Configure [root @ localhost ~] # Make & make install cmake is successfully installed. For more information about installing mysql5.6.11, see http://dev.mysql.com/doc/refman/5.6/en/source-configuration-options.html Decompress the mysql installation package [root @ localhost ~] # Tar zxvf mysql-5.6.11.tar.gz enter the directory cd mysql-5.6.11 after mysql decompression, specify the directory that mysql put, -- CMAKE_INSTALL_PREFIX =/usr/local/mysql5.6, specify the mysql data directory, -- datadir =/usr/local/share/xxxxx -- create the installation directory mkdir/usr/local/mysql and create the data storage directory mkdir/usr/local/mysql/data [root @ localhost ~] # Cmake. -DCMAKE_INSTALL_PREFIX =/usr/local/mysql-connector =/usr/local/mysql/data-DDEFAULT_CHARSET = utf8-DDEFAULT_COLLATION = utf8_general_ci make & make install modify directory permissions cd/usr/ local/mysql chown-R root: mysql. chown-R mysql: mysql data creates the table cd/usr/local/mysql/scripts of the system database. /mysql_install_db -- user = mysql -- basedir =/usr/local/mysql -- datadir =/usr/local/mysql/data: The -- basedir -- datadir parameter must be added for execution, otherwise, the following ERROR is reported: fatal error: cocould not find. /bin/my_print_defaults If you compiled from source, you need to run 'make install' tocopy the software into the correct location ready for operation. if you are using a binary release, you must either be at the toplevel of the extracted archive, or pass the -- basedir optionpointing to that location. cp support-files/my-default.cnf/etc/my. cnf and environment variables, so mysql 5.6 is installed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.