CentOS 6.5 Source Installation MySQL5.6.26

Source: Internet
Author: User

1: Download Install CMake (mysql5.5 is compiled by CMake later)

2: Create MySQL installation directory and database storage directory

#mkdir /usr/mysql                 //安装mysql #mkdir /usr/mysql/data            //存放数据库3: Create MySQL users and user groups #groupadd mysql #useradd -g mysql -s /bin/ false -M mysql4: Install mysqltar-zxv-f/ROOT/MYSQL-5.6.26.TAR.GZCD mysql-5.6.26cmake -DCMAKE_INSTALL_PREFIX=/usr/mysql -DMYSQL_DATADIR=/usr/mysql/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -DENABLED_LOCAL_INFILE=1If an error is required, install yum-y installed ncurses-develrm-f cmakecache.txtmakemake install5: Configure Mysqlcd/usr/mysqlchown-r Root:mysql. Chown-r Mysql:mysql DATA6:CP support-files/my- default .cnf /etc/my.cnf7: Initialize permission table scripts/mysql_install_db --user=mysql --basedir=/usr/mysql --datadir=/usr/mysql/data8: Start the MySQL serviceCd/usr/mysql/support-filesCP Mysql.server/etc/init.d/mysqldchmod 755/etc/init.d/mysqldService mysqld Start

CentOS 6.5 Source Installation MySQL5.6.26

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.