percona mysqld

CentOS
yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm -y

percona-release setup ps80

yum install -y percona-server-server

cat > /root/.my.cnf  << EOF
[client] 
user=root
EOF
echo password=`grep password /var/log/mysqld.log|cut -d "@" -f 2-|cut -d " " -f2- ` >> /root/.my.cnf

mysql_secure_installation -p
Debian
wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
percona-release setup ps80
apt-get install percona-server-server -y
echo -> Add twice a good password for mysql-user-root
echo -> wait for end


echo [client] > /root/.my.cnf
echo user=root >> /root/.my.cnf
echo password= >> /root/.my.cnf

echo -> edit /root/.my.cnf and add your root password

mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"

mysql_secure_installation

Categories sql