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.