Percona Server 5.6 RPM 快速安装&快速完全卸载
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Percona Server 5.6 RPM 快速安装&快速完全卸载相关的知识,希望对你有一定的参考价值。
1.先快速安装,然后进行学习,参数文件慢慢再来学习。
安装包下载到/tmp路径下
# tar -xvf Percona-Server-5.6.34-79.1-r1c589f9-el6-x86_64-bundle.tar
# ls *.rpm
# rpm -ivh Percona-Server-shared-56-5.6.34-rel79.1.el6.x86_64.rpm
# rpm -ivh Percona-Server-client-56-5.6.34-rel79.1.el6.x86_64.rpm
# rpm -ivh Percona-Server-server-56-5.6.34-rel79.1.el6.x86_64.rpm
# service mysql restart
ERROR! MySQL (Percona Server) PID file could not be found!
Starting MySQL (Percona Server). SUCCESS!
# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.34-79.1 Percona Server (GPL), Release 79.1, Revision 1c589f9
Copyright (c) 2009-2016 Percona LLC and/or its affiliates
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
mysql> status;
--------------
mysql Ver 14.14 Distrib 5.6.34-79.1, for Linux (x86_64) using 6.0
Connection id: 1
Current database:
Current user: [email protected]
SSL: Not in use
Current pager: stdout
Using outfile: ‘‘
Using delimiter: ;
Server version: 5.6.34-79.1 Percona Server (GPL), Release 79.1, Revision 1c589f9
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 36 sec
Threads: 1 Questions: 5 Slow queries: 0 Opens: 67 Flush tables: 1 Open tables: 60 Queries per second avg: 0.138
--------------
# /usr/bin/mysql_secure_installation --设置密码......
# mysql -uroot -proot
mysql -uroot -proot -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME ‘libfnv1a_udf.so‘"
mysql -uroot -proot -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME ‘libfnv_udf.so‘"
mysql -uroot -proot -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME ‘libmurmur_udf.so‘"
2.Percona Server 5.6 完全卸载
# service mysql stop
# yum remove Percona-Server* -y
# cd /var/lib && rm -rf mysql
本文出自 “roidba” 博客,请务必保留此出处http://roidba.blog.51cto.com/12318731/1893922
以上是关于Percona Server 5.6 RPM 快速安装&快速完全卸载的主要内容,如果未能解决你的问题,请参考以下文章
Linux下安装percona-server-5.6+tokuDB
Linux 下 YUM 安装 Percona Server 5.6