MySQL master-slave copy and read-Write separation experiment IntroductionIn the actual production environment, if the database read and write on the same database operation, whether in terms of security, high availability or high concurrency and so
Very simple (heading a bit around)As with normal backups, it is only within the Docker container that the failure sends mail to the mailbox and deletes data for more than 7 days
Basic Command Description:Docker exec executes commands in a running
MySQL between Usage1. Numerical typeThe between operator is used in the WHERE expression to select a range of data between two values. Between is used in conjunction with and with the following syntax:WHERE column between and value2 WHERE column
Tag:port Support ons syn pos enforce restart database binlog 1. Modify Parameters Master:gtid_mode = on --Open Gtid Must open enforce-gtid-consistency = on --to open Gtid This has to be turned on
1. Download MySQL and install2. If/ETC/MY.CNF does not exist, create a my.cnf and enter the following# Example MySQL config file for medium systems.## This was for a system with little memory (32m-64m) where MySQL plays# an important part, or
MHA集群介绍与安装MHA (Master high availability)– Developed by Nippon DeNA Company Youshimaton (now a Facebook company)– is an excellent set of highly available software for failover and master-slave upgrade in MySQL high-availability environments.–
When using MySQL, if you forget the other user's password, you can use the root user to reset, but if you forget the root password, you need to use a special method to operate.Directly modify the authorization table can modify the root password, the
Repeatable-read is the MySQL default transaction isolation level! Can solve the problem of dirty reading and non-repeatable reading, but may appear phantom reading situationNon-repeatable reads: In an uncommitted transaction, the two query results
Gtid conceptGTID, global transaction ID globaltransaction identifiersGtid is a transaction that corresponds to a globally unique ID that is used to identify the transaction as it is logged to Binlog.GTID counterpart transactions are performed only
SELECT DISTINCT * from t[,t1] WHERE condition GROUP By column has conditions ORDER by column [asc| DESC] LIMIT n,m;And,or,like LIMIT M OFFSET N;Condition and OR like <>=Writing orderSelect--from--where--group By--having--order byExecution orderFrom--
In the past, the cluster configuration of the database has been difficult, the difficulty lies in MySQL master and slave structure of high availability and read and write separation. Fortunately, the advent of galera/gr has greatly simplified the
Two kinds: MyISAM: ???????????? MyISAM is the default storage engine. Each myisam is stored as three files on disk, and each file name starts with the name of the table, and the extension indicates the file type.??????????? . frm file storage table
One: Basic operations1. Database creationCreate Database JMDb; Create a database named JMDb show databases; Show current Database listShow Database JM; View how the database was created drop databases JMDb; To delete a database named
1. BackgroundFor the database system to improve concurrency under multi-user concurrency and to ensure data consistency is always the goal of database system, it is necessary to meet the needs of a large number of concurrent access and must ensure
MySQL for security, by default users are allowed to log on locally only, but in this case, you still need to use the user for remote connection, so that they can be remotely required to do the following:Allow the root user to remotely log in
Server:192.168.11.131Master192.168.11.132SlaveServer System# Cat/etc/redhat-releaseCentOS Linux release 7.2.1511 (Core)1, the following installation process two nodes operate the same# Rpm-qa | grep mariadbPostfix-2.10.1-6.el7.x86_64# Rpm-qa | grep
I. Basic elements of a transaction (ACID)1, atomicity (atomicity): All operations after the start of the transaction, or all done, or all do not, it is impossible to stagnate in the middle. An error occurred during the execution of the transaction,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service