Install MYSQL5.6.10 on OEL6.3

Source: Internet
Author: User
Tags mysql create

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

Related Article

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.