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'