Install xtradb 1.0.4-8 on centos 5.4

Source: Internet
Author: User
Tags percona

Author: Yan Shiwei

 

1. xtradb version is used for MySQL-percona-5.1.39-8.rhel5.src.rpm

 

2. Download the RPM source code package and use RPM to unpackage
Rpm-IVH MySQL-percona-5.1.39-8.rhel5.src.rpm
3. decompress the source code package.
CD/usr/src/RedHat/sources
Tar-zxvf mysql-5.1.39.tar.gz
Tar-zxvf percona-xtradb-1.0.4-8.tar.gz

Note: The directory/usr/src/RedHat may be created first.

4. overwrite the Innobase source code.
Music mysql-5.1.39/storage/Innobase /~ /
CP-r percona-xtradb-1.0.4-8 mysql-5.1.39/storage/Innobase

CD mysql-5.1.39

Patch-P1 <../percona-support.patch

5. Create a group and a user
Groupadd MySQL
Useradd-G MySQL
Note: run the Su-root command. Otherwise, groupadd cannot be found.

6. Compile and install

./Configure-Prefix =/usr/local/MySQL-with-plugins = Innobase

Make

Make install

 

7. CP support-files/my-medium.cnf/etc/My. CNF

 

8. bin/mysql_install_db -- user = MySQL

 

9. bin/mysql_safe &

 

10. bin/mysqladmin-uroo password 'ikmbikmb'

 

 

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.