First look at the architecture, as shown in the following figure:
Deployment
1. Modify the Hosts
Perform the same operation on all servers.
Vim/etc/hosts
192.168.137.10 Master
192.168.137.20 backup
192.168.137.30 slave
192.168.137.40
MySQL has different types of log files (each store a different type of log), from which you can query what is done in MySQL, for the management of MySQL, these log files are indispensable.1. Error log: Log the database startup, operation and stop
How to use Mysqld_multi:Official document: Https://dev.mysql.com/doc/refman/5.7/en/mysqld-multi.html "There are some problems with this document, Mysqld_multi cannot close the instance according to its configuration"Mysqld_multi The workaround for
One, mysql-mmm (master-master Replication Manager fo MySQL) MMM overview
Dual-master failover and routine management procedures
Consists of multiple MySQL master servers and multiple MySQL slave servers
MMM is developed using the
Program Debug sometimes from the first line in front of the very hard (too much code or compile), another way is to catch up from the back, anyway, the last to write into the db, then from the beginning of the DB, so that is to catch the program is
Ask questions:???????? When using Rancher2.0.2 to deploy a MySQL deployment, we will find that if the MySQL container (pod) starts up only when the/var/lib/mysql data directory is set up, when the data directory and configuration directory are
I'm going to put a mysql5.7 on my centos7.2, I choose to compile the installation1 To install, first have to install the package, download toBecause mysql5.7 requires boost, we recommend that you try to install the MySQL source package download with
This article will cover another high-availability implementation of MySQL, namely MHA (Masterhigh avaliable). Master HA. is an open source high-availability program that provides MySQL's master-slave architecture with the ability to automatically
In a variety of memory CPU core only 1/2 cores, memory only 512m/1g VPS, memory, CPU, hard disk are not too abundant. So the main idea is to prohibit eating large memory InnoDB engine, the default use of MyISAM. It is forbidden to eat hard disk
On the MySQL server, view the/etc/my.cnf fileSet up:log-queries-not-using-indexes=onlong_query_time=0.03log-slow-queries=/var/log/mysql/mysqld.queries-slow.log
1
2
3
Log-queries-not-using-indexes=on open an SQL statement record
MySQL server's master-slave configuration, which allows for read-write separation, or can be recovered from the standby library after the main library has been hung offNeed two machines, install MySQL, two machines in a connected LANHost a:192.168.1.
Set up MySQL data synchronization (unidirectional & bidirectional) due to the company's business needs, the need for Netcom and telecommunications data synchronization, it has done a two-way synchronization of MySQL, write down the process, later
Environment: Two Ubuntu 12.04.5 virtual machinesMySQL-server-5.5Master (192.168.240.130) Slave (192.168.240.129)(1See if binary logs are turned on show variables like' Log_bin ';(2) Login master, open a database account grant REPLICATION SLAVE on* *
Primary server: 192.168.2.212from server: 192.168.2.211 Primary Server (192.168.2.212):The first to/ETC/MYSQL/MY.CNF will127.0. 0.1Comment out127.0. 0.1Allow non-native access.Log in to MySQLMysql-uroot-pGrant Replication on *. * to slave@192. 168.
Offers: Zstack cloud computingContent IntroductionThere are a large number of SQL database language implementations on Linux and Unix-like systems. MySQL and mariadb are two of the most popular options.However, as with most software, these tools can
MySQL execution sql can be recorded by setting the MySQL bin log, and the MySQL bin log is configured as follows: Log_bin:onlog_bin_basename:bin filepath and name prefixes(/var/log/mysql/mysql-bin) log_bin_index:bin file index
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.