Use keepalived to build a high-availability environment for MySQL.First build MySQL master-slave replicationOn master, open Binlog, create a copy account,Then enter the command in the slave
Change Master to
Master_host= ' 192.168.1.70 ',
Transferred from the public number "MySQL database": http://mp.weixin.qq.com/s?__biz=MzIyNjIwMzg4Ng==&mid=2655293044&idx=1&sn= E312934e5115105fdbe5da12af150276&scene=0#wechat_redirect"All over" MySQL database operations common commands2016-07-21
Check the MySQL error log and send an email notification if error is found. The script does not process the error log, so repeated checks are sent, so you can handle the error log on your own.The code is as
The various high-availability scenarios for MySQL are mostly deployed on the basis of the following:
Based on master-slave replication;
Based on the Galera protocol;
Based on the NDB engine;
Based on middleware/proxy;
Based
What is a MySQL databaseTypically, a database is a collection of data, and a database can be a collection of files on a memory or a collection of some memory data.What we usually call MySQL database, SQL Server database and so on is actually a
bigintInteger data (all numbers) from -2^63 (-9223372036854775808) to 2^63-1 (9223372036854775807). The storage size is 8 bytes.p.s. bigint already has length, in MySQL build table length, just used to display the number of digitsIntInteger data
Change MySQL promptmysql> prompt \[email protected] \r:\b:\sFind to my database starting withMysql> show databases like ' my% 'Delete all UsersMysql> Delete from Mysql.user;Add User RightsMysql> Grant all privileges on * * to [e-mail protected] '% '
Download the binary-free compiler package.wget http://mirrors.sohu.com/mysql/MySQL-5.1/mysql-5.1.73-linux-i686-glibc23.tar.gzDu-sh check size, probably more than 100 m. Note the version of System 32 or 64, next to version.
Extract.TAR-ZXVF plus
An error occurred while updating the root password todayUpdate user set password= ' 123456 ' where user = ' root ' is wrong to writeShould be update user set password = password (' 123456 ') where user = "root"The MySQL database disappeared after
because many business tables use a design pattern that violates the first paradigm for historical reasons or for performance reasons. That is, multiple attribute values are stored in the same column (see the following table for specific
The usage of isnull,ifnull,nullif in MySQL is as follows:Usage of IsNull (expr):If expr is null, then the return value of IsNull () is 1, otherwise the return value is 0.Mysql> Select IsNull (+);0Mysql> Select IsNull (1/0);1The comparison of NULL
1/isamISAM is a well-defined and time-tested form of data management that, at design time, takes into account that the number of times the database is queried is much larger than the number of updates. As a result, ISAM performs read operations
1. Replication overview1.1. Replication-Resolved issuesData replication technology has some of the following features:(1) Data distribution(2) Load balancing (load Balancing)(3) Backup(4) High availability (Hi availability) and fault tolerance1.2.
First, MySQL database installation:Download the database installation file for your operating system category and version from its official website and follow the instructions to install it. After you open a. dmg file, there are three required
Recent projects require a random fetch of data from the MySQL database.It is always known that order by Rand will be dead. Because of my big data on the amount of only a little understanding, no solution, to find Baidu teacher. Search results are
Anti-quotes, usually below the ESC key.It is a symbol that is introduced to differentiate between MySQL's reserved words and ordinary characters.For example: Select ' Select ' From ' Test ' WHERE select= ' field value 'In the test table, there is a
MySql optimization steps (recommended), mysql optimization steps recommended
General steps for MySql optimization:
1. Run the show status command to check the execution efficiency of various SQL statements.
Show status provides the STATUS
"Zero-Distance Access to mysql" study notes, zero-Distance Access to mysql
1. add, delete, modify, and query data tables (crud ):
For tables:
Add: create table XXXX
Delete: drop table XXXX
Change: alter table XXXX rename to XXXX
Query: select * from
How to install and uninstall Mysql5.7.11 on Mac, macmysql5.7.11
Install
Go to the http://www.mysql.com/downloads/, select MySQL Community Edition at the bottom, click download of MySQL Community Server to download the DGM Archive version.
After the
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