系统要求:

#停止firewall

 #禁止firewall开机启动

systemctl stop firewalld.service

systemctl disable firewalld.service

systemctl status firewalld

 关闭selinux

setenforce 0

echo "setenforce 0" >> /etc/rc.local

sed -i 's/SELINUX=enforcing/SELINUX=disabled/g'     /etc/sysconfig/selinux

echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag

echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled

echo never > /sys/kernel/mm/transparent_hugepage/enabled

echo never > /sys/kernel/mm/transparent_hugepage/defrag

1\. Install the Percona repository

yum -y install [https://www.percona.com/redir/downloads/percona-release/redhat/latest/percona-release-0.1-4.noarch.rpm](https://www.percona.com/redir/downloads/percona-release/redhat/latest/percona-release-0.1-4.noarch.rpm)

可以查看一下

yum list | grep percona

2\. Install the packages

 

yum -y install Percona-Server-server-57

![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAi4AAABvCAYAAADL0Us/AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAABjkSURBVHhe7Z07duI8FMdvvrXAFDmswFlBMk2qtOlMCc10lOmmISV0aVOlCawgrCAnRWAvfHrZlmzrYcsQm/n/ztFJQEjW40q6eliXGMeyS5b7436ZVL7PHPzhD3/41/lxB3/4wx/+dX7cdeF/dWSwDwAAAAAAvec/9RcAAAAAoPdAcQEAAADAYIDiAgAAAIDBAMUFAAAAAIPhBxWXLU2vrmi6VR8BAOBsoP8BZ2I7paurG3o+qM8gGqy4AAAAAGAwOBQXOSO5Mhy0RgDAOTnQ8w3re26e2X8AhLGdMpmpWU47PN/Ufn9Sbld0PH7QbKQ+g2i8Ky7p5sgKXbr9kmj+qHUgYglMV2ymTN0xEYKi/8bRAQlh05Ujb/yqU1P+N9Mp3ZR+Yz6/mj4AQI/Z/qX5JKV090rvRseRbfXofUB1YhXS/8h+RznsHV0Et/cp0fqtMl68vxIt/9yqz67xIUC+Ds9svMn8yv7m2FQ/9rh+U2xlQj6rNNoqG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yHWzmBCOLA4Pv2/M9dBhZBLHUtX/epwjFwXKo1Ns/eMJb6UJ+fPLPaZu+DFf4+PEfRhZzSnuFhoE+li4YWSwQ+456vOUzBLHlG5Y+e/44eh2wsm96xqWURzN/6tmtCxCcFFV3evVkslJ8p8uHkhHlk2HKVwPZUYSFL7UL0A887b+Qn/p69fcP9vCm3Giutp9vKz8++Y9Nn7t8ONV49P5bIeqh5ntGWPuqAltFAIB/DD6ThJFFAIYKFBcAAAAADIaIMy4AAAAAAOcFigsAAAAABgMUFwAAAAAMBiguAAAAABgMUFwAAAAAMBiguAAAAABgMEBxAQAAAMBggOICAAAAgMEAxQUAAAAAgwGKCwAAAAAGAxQXAAAAAAwGKC4AAAAAGAxQXAAAAAAwGKC4AAAAAGAwQHHhbKd0dXVDzwf1GQAAAAA9hOh/2upOqUglnOkAAAAASUVORK5CYII=)

Percona Server 5.7支持 TokuDB storage engine 就一起安装

 yum -y install Percona-Server-server-57 Percona-Server-tokudb-57.x86_64

![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjwAAACSCAYAAABBhhAtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAACArSURBVHhe7Z29UuM8F8cP77UkW+xwBeEKYBsqWrowT0Wa7SjptgnNzpBqaaloSK6AzGzPUGxyL3l1JNmWbOvDlh0S8//NaAhRJEvykXT0eU7+/Pmz+/v3L/3+/ZsAAAAAAIbI//RfAAAAAIDBAoUHAAAAAIMHCg8AAAAABg8UHgAAAAAMHig8AAAAABg8UHgAAAAAMHig8AAAAABg8NQqPNuHMzo5Oal1Zw9b+MO/1o8d/OEPf/jX+bGDP/z36V8GFw8CAAAAYPBghqfk4A9/+MO/zo8d/OEP/+PxL4MZHgAAAAAMHmxaBgAAAMDggcIDAAAAgMEDhQcAAAAAgwcKDwAAAAAGz4EqPCu6OTmhm5X+FwAA9gbaH7AnVjd0cnJGD1v9P+gVzPAAAAAAYPC0VHjUC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C9BoPW8/o45K/n+RGJJdT4zLBXo17srLjNz6q0u8yXgoA+DRgPBR0yfaVnteFYeYwifIjTeOULslNth7QjGD/7CW1/nwePe3hUddjW7Yw2DaUYU1deBa3VE5Nswma0chQLkakjLHnodOQAj4xbFPpBpIWpC6nzNIPezgAHCRC6XmSg6UzOpPaTrmuZqP2BV1UDLmpm8AXFy90mTf4rD/FjnJD4Xkp65munjBAOmTyPTRj8a4MZTlMovzIW/lLjL7Rqfi2qy7OT0T/7CW1/nwePSk8qkDSjIfZS07NjE8GCBofVemPN6UAANg3MB4KUijsUd3Rx7i5rbPW8iNnc0qUDCI3Mn7cmC765/T68xn0pPCo0VV742Fqyam98ckAwelDlX6n8VIAwKcD46GgG87p53zSYAUhUX7kbE62mqApDcK7MH7sJrV/Tq0/n0dPCk+q8TClgbY3PhkgaHw0S7/DeCkA4HPhfTkwHgo6QW0iLvobJjtyXbdMEyM/vvBKwVrcZzOOYoB/v7BmTNLxp/9gjXv2TTvjoTbLKdUaUnMaD2PDktoQmfyNDsvx5EbcYo17eoyPSZz+2jBn/owYI2rdGDADACQA46EgkUrbXnlBTY1jln8XDi/7zSx8AwGppD1zAzDu2TedGA/l9cb77xuMYAAARw6PjGE8FIAh0sGSllpuwgZfAMDxA+OhAAyVlgqPeaW02lx8bBcQAQAAAODr0FLhKY2CoO0AAAAA4IDp6ZQWAAAAAMDhAIUHAAAAAIMHCg8AAAAABg8UHgAAAAAMHig8AAAAABg8Jzs+ZgUAAAAAMGAwwwMAAACAwQOFBwAAAACDBwoPAAAAAAYPFB4AAAAADB4oPAAAAAAYPFB4AAAAADBwiP4Pjh/WUFq7U2QAAAAASUVORK5CYII=)

 service mysql start

cat /var/log/mysqld.log|grep password 里面有临时密码

登入

 mysql -uroot -p"i9>A(9q<Hh54"

改密码--要求复杂性

mysql> set password=password('Hzw123####');

exit

启用TokuDB

 Run the following script to enable the TokuDB storage engine in Percona Server:

&nbsp;&nbsp;&nbsp; ps_tokudb_admin --enable -u &lt;mysql_admin_user&gt; -p[mysql_admin_pass][-S <socket>][-h <host> -P <port>]

执行ps_tokudb_admin --enable -uroot -p<span style="font: 14px/21px 微软雅黑; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;">Hzw123####</span>

要求 service mysql restart

mysql -uroot -p&quot;Hzw123####&quot;

mysql&gt;SHOW ENGINES;

...|TokuDB|YES|TokutekTokuDBStorageEnginewithFractalTree(tm)Technology|YES|YES|YES|...

mysql&gt;SELECT@@tokudb_version;

如果不想用ps_tokudb_admin ,要手动安装,请看手册。

[https://www.percona.com/doc/percona-server/5.7/tokudb/tokudb_installation.html](https://www.percona.com/doc/percona-server/5.7/tokudb/tokudb_installation.html)

&nbsp;