Percona Mysql Installation Configuration

Source: Internet
Author: User
Tags mysql version percona

#!/bin/bashcd /root/softtar zxvf cmake-2.8.5.tar.gz   cd cmake-2.8.5    ./bootstrap   make   make install   yum  install -y libaio-devel ncurses-develgroupadd mysql useradd -g mysql  Mysql -s /sbin/nologinmkdir -p /data/mysqlp chown mysql.mysql /data/mysqlp  cd /root/softtar zxvf Percona-Server-5.5.32-rel31.0.tar.gz cd  percona-server-5.5.32-rel31.0/usr/local/bin/cmake . -dcmake_install_prefix=/usr/local/mysql_p - Dwith_innobase_storage_engine=1 -denabled_local_infile=1 -dextra_charsets=all -ddefault_charset =utf8 -ddefault_collation=utf8_general_ci   -dwith_debug=0 -dbuild_config=mysql_ release -dfeature_set=community -dwith_embedded_server=offmake && make  install mkdir /usr/local/mysql_p/tMpchmod 777  /usr/local/mysql_p/tmpchmod 755 /usr/local/mysql_pchown mysql.mysql  -r /usr/local/mysql_pmkdir /usr/local/mysql_p/etc cp /root/soft/my.cnf /usr/ local/mysql_p/etc//usr/local/mysql_p/scripts/mysql_install_db --basedir=/usr/local/mysql_p/  -- Datadir=/data/mysqlp/ --user=mysqlcp support-files/mysql.server /etc/init.d/mysqldchmod +x  /etc/init.d/mysqldchkconfig --add mysqldyum remove mysql -yrm -rf / usr/bin/mysql*ln -s /usr/local/mysql_p/bin/mysql* /usr/bin/service mysqld start/usr/ local/mysql_p/bin/mysqladmin -u root password  "123"  -s /usr/local/mysql_p/ Mysql.sock

Note: Percona mysql version is: 5.5.32 package please download it yourself!

This article is from the "Chengdu @ Ah-like" blog, please be sure to keep this source http://azhuang.blog.51cto.com/9176790/1551549

Percona Mysql Installation Configuration

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.