OEL6.3 install MYSQL5.6.10 1.yum install gcc * c ++ * autoconf automake zlib * libxml * ncurses-devel libmcrypt * libtool-ltdl-devel * library file required for installing the system 2. install the cmake tool. Yum install cmake * 3. A warning occurred when installing the mysql 5.6 source code: Googlemock was not found. Check that the new mysql 5.6 version also supports the google c ++ mock framework, the prompt "-DENABLE_DOWNLOADS = 1" can solve this problem (that is, allow download ). Cmake-DCMAKE_INSTALL_PREFIX =/usr/local/mysql-DMYSQL_UNIX_ADDR =/usr/local/mysql. sock-DDEFAULT_CHARSET = utf8-DDEFAULT_COLLATION = utf8_general_ci-DWITH_EXTRA_CHARSETS: STRING = utf8, gbk-cores = 1-cores = 1-cores = 1-DWITH_READLINE = 1-DENABLED_LOCAL_INFILE = 1-DMYSQL_DATADIR =/usr/local/mysql-DMYSQL_USER = mysql-cores = 3306-DENABLE_DOWNLOADS4. you can download a gmock-1.6.0.zip file under the mysql-5.6.10/source_downloadsfolder, the installation of this file note: If errors occur midway, need to re-compile, need to delete CMakeCache.txt, find/-name CMakeCache.txt unzip gmock-1.6.0.zip. /configuremake5> make install after execution, you will see the installation successful prompt 6> useradd mysql create a user with the username of mysql 7> install the default database: go to cd/usr/local/mysql/scripts. /mysql_install_db -- basedir =/usr/local/mysql -- datadir =/usr/local/mysql/data/-- user = mysql [root @ localhost local] # chown mysql: mysql-R/usr/local/mysql/[root @ localhost local] # cd .. [root @ localhostmysql] # scripts/mysql_install_db -- user = mysql [root @ localhostmysql] # cp support-files/my-default.cnf/etc/my. cnf [root @ localhostmysql] # bin/mysqld_safe -- user = mysql & [root @ localhostmysql] # cp support-files/mysql. server/etc/init. d/mysqld [root @ localhostmysql] # chmod + x/etc/init. d/mysqld [root @ localhostmysql] # chkconfig -- add mysqld 9> start service mysqld start |/etc/init. d/mysql start add to start (chkconfig -- add mysqld) 10> add the password of the root user of mysql: mysql-u root password 'your _ password 11> View startup status in the process ps-ef | grep mysqld 10> Add the password of the root user of mysql: mysql-u root password 'your _ password 11> View startup status in the process ps-ef | grep mysqld