In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "centos7 how to install percona Server server", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "centos7 how to install percona Server server" bar!
Introduction to Percona Server
Percona Server is an improved version of MySQL. Using XtraDB storage engine, it has a significant improvement over MySQL in terms of function and performance, such as improving the performance of InnoDB under high load, providing DBA with some very useful performance diagnostic tools, and more parameters and commands to control server behavior.
Percona Server installation
Platform description:
Centos 7, Percona Server 5.6
Execute user root, install using user centralight
1. Update yum
Yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm
two。 Installation
Yum install Percona-Server-client-56 Percona-Server-server-56
Installation if there is a conflict and mysql has been installed before, you need to uninstall it
Rpm-qa | grep mysqlrpm-qa | grep mariadbrpm-e [Software ID]
3. Non-multi-instance configuration and startup
Default profile path / etc/my.cnf
Initialize mysql_install_db-- user=centralight-- datadir=/cl/data/mysql/percona3311 launch mysqld_safe-- user=centralight-- datadir=/cl/data/mysql-- defaults-file=/cl/dist/conf/mysql/my.cnf
4. Multi-instance configuration and startup
Chown-R centralight / cl/data/mysql/percona3311 mysql_install_db-datadir=/cl/data/mysql/percona3311-user=centralight
All profile directories
The default configuration file path / etc/my.cnf is modified as follows
[client] user = root password = 123 # Here follows entries for some specific programs [mysqld_multi] mysqld = / usr/bin/mysqld_safe mysqladmin = / usr/bin/mysqladmin [mysqld3311] socket = / var/lib/mysql/mysql3311.sock port = 3311 datadir = / cl/data/mysql/percona3311 pid-file = / var/lib/mysql/hostname.pid3311 user = centralight skip-external-locking key_buffer_size = 16m max_allowed_packet = 1m table_open_cache = 64 sort_buffer_size = 512K
Start
Mysqld_multi-defaults-file=/etc/my.cnf-log=/cl/log/mysql/mysql.log start 3311
Report statu
Mysqld_multi-defaults-file=/etc/my.cnf report 3311
5. Log in to the database to modify users and permissions, and connect remotely
Mysql-uroot-p-h227.0.0.1-P3311 mysql > use mysql; mysql > update user set host='%' where host=' localhost' and user='root' mysql > flush privileges
Set password
Mysql > UPDATE user SET Password=password ("123") WHERE user='root' and host='%'; mysql > flush privileges
If you cannot connect remotely, turn off the firewall and try
CentOS 7.0 uses firewall as the firewall by default
Systemctl stop firewalld.service systemctl disable firewalld.service thank you for reading, the above is the content of "how to install percona Server server in centos7". After the study of this article, I believe you have a deeper understanding of how to install percona Server server in centos7, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.