Lab requirements: Deploy MySQL cluster to reduce database single points of failure.Protocol: Prepare 5 servers, MGMD (192.168.100.1) as the Management node, Sqla (192.168.100.2) and sqlb (192.168.100.3) as SQL nodes, NDBA (192.168.100.4) and NDBB (19
Three machines ready:192.168.220.129 (Master)192.168.220.143 (slave)192.168.220.144 (proxy)Make sure that MySQL (5.6.29) is installed on all three machinesMY.CNF ConfigurationMaster [MYSQLD1]basedir =/usr/localmysqldatadir =/data/mysqlport =
MySQL cluster architecture in many ways, according to different needs to do the same architecture, the simple point is the MySQL replication, that is, MySQL replication function, the mode is: Master-slaves,master-slaves-slaves, Master-master-slaves
Debian wheezy upgrade, because of authorization errors, resulting in password changes, in the Debian safe under the MySQL can not access.I have modified the bind-address for LAN IP in/ETC/MYSQL/MY.CNFAnd then executed theGRANT all privileges on * *
A mature database architecture is not designed to be high availability, high scalability and other features, it is with the increase in user volume, the infrastructure is gradually improved. This blog post mainly on the MySQL database development
Example Description:Main Library ip:0.0.0.43From library ip:0.0.0.194First, Configuration Main Library (0.0.0.43 )1, edit the main library configuration file /etc/my.cnf, note the location, add under [mysqld] , do not add to [Mysqld_safe]
UpdateIn fact, this article is mainly from www.digitalocean.com, but I did not buy their home VPS for demo. It's just vagrant a simulation.IntroductionTalk about using two VPS to extend MySQL. Before we talked about at 2 VPS directly through nginx
SED: Data Flow EditorReads a row into the memory processing row and then outputs a row.Mode space:SED: Do not edit source files by defaultsed [option] Addresscommand file1, start line, end linesed startline,endline file sed 2,5p file2. Pattern
[Email protected]
2015-1-14 22:00:23
Ubuntu operation and maintenance skills update too fast, every six months a release, it will be updated every six months. All this knowledge is forgotten before the ubuntu14.04lts.1. Rough fix Ubuntu
1. Find 2: log files and position of time . Ps: This assumes that I found the mysql-bin.000065 position to start with 1356. 2 Copy the last few log files from mysql-bin.000065 to the most recent generated log files. sudo cp/var/log/mysql/mysql-bin.
One, Mysql-proxy Base
MySQL Proxy is a simple program between your client side and the MySQL server side that can monitor, analyze, or change their communications. It uses flexible, unrestricted, common uses including load balancing, failure, query
A. Key_buffer_size is very important for the MyISAM table.
If you are using only the MyISAM table, you can set it to the 30-40% of available memory. A reasonable value depends on the size of the index, the amount of data, and the load--remember, the
A mature database architecture is not designed to have a high availability, high scalability, and so on, it is with the increase in user volume, the infrastructure is gradually improved. This blog post mainly discusses the MySQL database development
Environment:
Pc:ubuntu 10.10 192.168.1.112 (master) 192.168.10.245 (slave)Mysql:5.1.49-1ubuntu8.1-logDatabase test already exists in master
First Modify MySQL configuration file:/etc/mysql/my.cnf[Master]
#author: Zhxia
Copy Code code as
MySQL cluster architecture in many ways, according to different needs to do the same architecture, the simple point is the MySQL replication, that is, MySQL replication function, the mode is: Master-slaves,master-slaves-slaves, Master-master-slaves
A mature database architecture is not designed to be high availability, high scalability and other features, it is with the increase in user volume, the infrastructure is gradually improved. This blog post mainly on the MySQL database development
(turn) operation dimension on MySQL database optimizationTransferred from: http://lizhenliang.blog.51cto.com/7876557/1657465A mature database architecture is not designed to be high availability, high scalability and other features, it is with the
MySQL Slow query:Check if log on slow query is turned on:
Show variables like ' log_slow_queries ';
View SQL that is slower than how many seconds are logged to the log file:
Show variables like ' long_query_time ';
Configure Logging
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.