wget http://repositories.voole.com/jemalloc-4.0.4.tar.bz2 tar xjf jemalloc-4.0.4.tar.bz2 cd jemalloc-4.0.4 ./autogen.sh make && make install echo '/usr/local/lib' >> /etc/ld.so.conf.d/local.conf ldconfig
二、下载二进制包并部署: cd /opt/soft wget http://repositories.voole.com/Percona-Server-5.7.21-20-Linux.x86_64.ssl101.tar.gz tar zxvf Percona-Server-5.7.21-20-Linux.x86_64.ssl101.tar.gz mv Percona-Server-5.7.21-20-Linux.x86_64.ssl101 /usr/local/mysql
三、创建mysql用户组 groupadd mysql && useradd -g mysql -M -s /sbin/nologin mysql
set password=password('123456'); 如果需要再次修改root密码 update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';
十、设置访问权限
grant all on . to root@"%" identified by "mysql*()";