Get the App
SLTechnology News&Howtos  ›  Database  › 

How to install percona server 5.7

Shulou Source: shulou.com Published: 2022-05-31 13:58:58 10月01日 Update

This article mainly explains how to install percona server 5.7. friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn "how to install percona server 5.7".

1 if there is a rpm package installed on the machine, be sure to turn off the default / etc/my.cnf mv to prevent subsequent initialization startup errors

2 pay attention to the order of parameters during initialization-defaults-file is put in front of it.

/ home/mysql/mysql/bin/mysql-S / home/mysql/my3313/run/mysql.sock-uroot-p

Set password for 'root'@'localhost'='mx3h7ccZ3RO'

/ home/mysql/mysql/bin/mysqld-defaults-file=/home/mysql/my3311.cnf-initialize-user=mysql-basedir=/home/mysql/mysql-datadir=/home/mysql/my3311/data

/ home/mysql/mysql/bin/mysqld_safe-defaults-file=/home/mysql/my3311.cnf-user=mysql > / tmp/mysql_star.log 2 > & 1 &

/ home/mysql/mysql/bin/mysqld-defaults-file=/home/mysql/my3312.cnf-initialize-user=mysql-basedir=/home/mysql/mysql-datadir=/home/mysql/my3312/data

/ home/mysql/mysql/bin/mysqld_safe-defaults-file=/home/mysql/my3312.cnf-user=mysql > / tmp/mysql_star.log 2 > & 1 &

/ home/mysql/mysql/bin/mysqld-defaults-file=/home/mysql/my3313.cnf-initialize-user=mysql-basedir=/home/mysql/mysql-datadir=/home/mysql/my3313/data

/ home/mysql/mysql/bin/mysqld_safe-defaults-file=/home/mysql/my3313.cnf-user=mysql > / tmp/mysql_star.log 2 > & 1 &

-- percona runs on a single machine and multiple instances

Master-slave building:

Main library

Reset master

Reset slave

Grant replication slave,reload on *. * to "slave" @ "10.50.61.21" identified by "fhSU6ayL"

Flush privileges

Show master status

From the library:

Stop slave

Reset master

Reset slave

Change master to master_host= "10.50.61.21", master_user= "slave", master_password= "fhSU6ayL", master_port=3310,master_log_file= "binlog.000001", master_log_pos=608

Start slave

Show slave status\ G

At this point, I believe you have a deeper understanding of "how to install percona server 5.7". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Content learning practical deeper master-slave interest stand-alone parameters examples practicality practice simple operation method time more friends machines websites errors order Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi macOS Huawei Docker Microsoft