Current Pt-slave-restart The latest version is 2.2.19, when you perform the following command to skip the primary key conflict, you will get an error.# Pt-slave-restart--user=root--error-numbers=1062 dbd::mysql::d b selectrow_arrayref failed:unknown system variable ' Gtid_mode ' [For Statement ' SELECT @ @GLOBAL. Gtid_mode "] At/usr/local/bin/pt-slave-restart lin
() |+ ---------------- +| 5.5.24-MariaDB |+ ---------------- +
How to upgrade MariaDB?
To upgrade MariaDB, follow these steps:
Extract files from the new MariaDB package to the/opt directory (which can be placed in the same directory as the current version)
Stop running current
Tags: ant current value Lin Create compile users restart base1, installation mariadb Installation commands Yum-y Install mariadb Mariadb-server Installation Complete mariadb, first start mariadb, two commands can be Systemctl Star
Character Set
File/etc/my. cnf
vi /etc/my.cnf
Add under the [mysqld] label
init_connect='SET collation_connection = utf8_unicode_ci' init_connect='SET NAMES utf8' character-set-server=utf8 collation-server=utf8_unicode_ci skip-character-set-client-handshake
File/etc/my. cnf. d/client. cnf
vi /etc/my.cnf.d/client.cnf
Add in [client]
default-character-set=utf8
File/etc/my. cnf. d/mysql-clients.cnf
vi /etc/my.cnf.d/mysql-clients.cnf
Add in [mysql]
default-character-set=utf8
All configurations are
, User, Password from user; // check whether all users whose passwords are empty have been deleted.MariaDB [mysql]> exit;
Set a firewall so that other servers in the LAN can accessVi/etc/sysconfig/iptables
-A input-m state -- state NEW-m tcp-p tcp -- dport 3309-j ACCEPT
/Etc/init. d/iptables restart
Linux Tutorial: How to check the MariaDB server version
Implementation of
servicesMariaDB [hellodb]> start slave;[Email protected] ~]# Systemctl stop Mariadb.service(6) Cancel [Galera] paragraph logout and restart serviceThen add data to any node 3 nodes can be synchronized, this operation is completeAdditional notes:1.Galera cluster node After stop service, if the data is updated later, only need to restart the MySQL service, the data will be automatically synchronized2. Later,
-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
Note: Above this is the official online source, but I am greater China ..., you must use the agent, or slow one, with the following the source of Tsinghua is very fast.
Using Tsinghua's Source
# MariaDB 10.3 CentOS repository list - created 2018-08-31 07:59 UTC
# http://downloads.mariadb.org/
cause.4. after the problem is solved, cd goes to the mariadb/bin directory, log on to mariadb, and then execute "set password for 'root' @ 'localhost' = PASSWORD ('new password ');", you can change the account password. 5. show variables like 'character % '; // view character sets
Possible problems: Access denied for user 'root' @ 'localhost' (using password: YES ).
The root account does not have the remot
storage functions;
-- Triggers: Backup trigger
-- Master-data [= #]:
1: records the change master to statement. This statement is not commented out;
2: The record is a comment statement;
Note: MariadbSerious dependence on data recovery and bin-logLog, so to prevent data files and bin-log caused by disk failureThe file is lost together, so it is best to set the bin-logLogs are stored in shared storage.
Setting Method: Modify the Mariadb configurati
-clients.cnfVi/etc/my.cnf.d/mysql-clients.cnfAdd in [MySQL]Default-character-set=utf8Complete configuration, restart MARIADBSystemctl Restart MARIADBThen enter MARIADB to view the character setMysql> Show variables like "%character%", show variables like "%collation%";Displayed as+--------------------------+----------------------------+| variable_name | Value |+-
MariaDB Galera Cluster deployment (how to quickly deploy MariaDB Cluster)
MariaDB, as a branch of Mysql, is widely used in open-source projects, such as the Popular openstack. To ensure the high availability of services and improve the load capacity of the system, cluster deployment is essential.MariaDB Galera Cluster Introduction
2.8M Galera x86_6425.3.19-1.rhel7.el7.centos MARIADB 8.0M Jemalloc x86_643.6.0-1.EL7 MARIADB 104k Transaction Summary================================================================================installation2 Packages (+4dependent packages) ....Download the installation package first, then install it automatically, and start the MARIADB service after the insta
MARIADB, as a branch of MySQL, is already widely used in open source projects, such as hot OpenStack, so the cluster deployment is essential to ensure high availability of the service while increasing the load capacity of the system.MariaDB Galera Cluster IntroductionThe MARIADB cluster is a MARIADB synchronous multi-host cluster. It only supports the XTRADB/INNO
Label:MARIADB, as a branch of MySQL, is already widely used in open source projects, such as hot OpenStack, so the cluster deployment is essential to ensure high availability of the service while increasing the load capacity of the system. MariaDB Galera Cluster IntroductionThe MARIADB cluster is a MARIADB synchronous multi-host cluster. It only supports the XTRA
MariaDB Galera Cluster deployment (how to quickly deploy the MariaDB Cluster), galeramariadb
MariaDB, as a branch of Mysql, is widely used in open-source projects, such as the Popular openstack. To ensure the high availability of services and improve the load capacity of the system, cluster deployment is essential.MariaDB Galera Cluster Introduction
MariaDB, as a branch of Mysql, is already widely used in open source projects, such as hot OpenStack, so the cluster deployment is essential to ensure high availability of the service while increasing the load capacity of the system.MariaDB Galera Cluster IntroductionThe MariaDB cluster is a MariaDB synchronous multi-host cluster. It only supports the XTRADB/INNO
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.