MySQL do master/slave synchronization, delay too big how to do?

Slave delay is more common, if the short delay after the catch up, generally can accept. Using InnoDB is not a bad thing, it will reduce some slave abort situation. If it is a MyISAM table, the Insert update delete operation is interrupted

A study on MySQL case-sensitivity problem

First say the problem encountered: There is a MySQL instance ran two libraries, two sets of programs. One of the library's table names is all uppercase, and the other library's table names are all lowercase.The program with the table named lowercase

Principles for designing MySQL indexes

1. The index column of the search is not necessarily the column you want to select. In other words, the column that best fits the index is the column that appears in the WHERE clause, or the column specified in the JOIN clause, rather than the

MySQL multiple field stitching

MySQL Query results row field stitching, can be implemented with the following two functions:1. Concat functionMysql> Select Concat (' 1 ', ' 2 ', ' 3 ') from test; +---------------------+| Concat (' 1 ', ' 2 ', ' 3 ') |+---------------------+| 123 |

MYSQL auto_increment, default keyword

1.Auto_increment:Only one column in the InnoDB table can be auto_increment, and this column must also be indexed.CREATE TABLE T (X int auto_increment primary key,y int); --ToCREATE table T (x int auto_increment,y int, index ix_a (x))--the

MySQL bulk replaces the specified field string

MySQL Bulk replace specified field string statement UPDATE data table name SET Field name = replace (field name, ' String to replace ', ' replace with ') WHERE to set conditions; If the WordPress article "Search engine

JDBC uses this one under MySQL.

Import java.sql.Connection;Import Java.sql.DriverManager;Import Java.sql.ResultSet;Import Java.sql.ResultSetMetaData;Import java.sql.SQLException;Import java.sql.Statement;Import java.util.ArrayList;Import Java.util.HashMap;Import

Yum install MySQL server

MySQL can be installed RPM package or directly yum download installation, here is about yum download installation (storage path is set by itself)Environment: centos6.5 Setenforce 0 (if 1, startup error) Fdisk 3 partitions, and pvcreate65

MySQL large text parameters for serial write queue

Public voidasyncwritedatabase () {varSpname =""; while(true) { Try { varJsontext = Redishelper.blockingpopitemfromlist ("async_write_list"); varo =(Jobject) jsonconvert.deserializeobject

Java MySQL Pure Drive connection

PackageSQL;Importjava.sql.Connection;ImportJava.sql.DriverManager;ImportJava.sql.ResultSet;Importjava.sql.SQLException;Importjava.sql.Statement; Public classJdbctest { Public StaticString driver= "Com.mysql.jdbc.Driver"; Public StaticString url=

Win8.1 installation Mysql-installer-community-5.6.21.0.mis

IntroductionMy machine is win8.1, on the official website to download this installation is 32-bit and 64-bit can be installed, installation procedure reference: http://jingyan.baidu.com/article/67662997305dcd54d51b84d4.htmlPost-Installation

MySQL Database engine

Mysql>show engines;+------------+---------+----------------------------------------------------------------+--------------+-----+- -----------+| Engine | Support | Comment | Transactions | XA | savepoints |+------------+---------+--------------------

MySQL master-slave configuration process

First refer to the MySQL5.5 official manual for the following chapters:Section 6.4 How to set up replication13.6.1 section for controlling the primary server SQL statements13.6.2 section for controlling SQL statements from the server6.8 section copy

MySQL master-slave replication and read/write separation

The so-called read and write separation is the preparation of two types of MySQL database, a update operation (master), a query operation (slave). Call Master when the application needs to update data and invoke slave when querying data. The benefit

MySQL to user operation Plus audit function------Junior Edition

In some applications, you need to know who is working on the table, what has been done, and what is responsible for the pursuit. In MySQL, you can use a trigger implementation.1: Create a test table Mysql> CREATE Table A (a

MySQL's Action on Table records

1. Insert record--insert intoinsert into table_name (field1,field2,field3)  values (Value1,value2, VALUE3), or you can not specify a column name, but the order after values should be the same as the order in which the columns are arranged

MySQL performance optimization related

The original use of MySQL processing less data, small-scale, do not pay attention to the performance of the problem. The recent spike in data volumes, at least 20W of new data per day, has caused MySQL to be poor in performance and must be valued

MySQL location lock contention for a more serious table

1: View the current transactionMysql> SELECT * from Information_schema.innodb_trx \g2: View the currently locked transactionsMysql> SELECT * from INFORMATION_SCHEMA. Innodb_locks;3: View transactions for the current lockMysql> SELECT * from

Basics of MySQL

First, the storage engineMysql>show engines;+--------------------+---------+----------------------------------------------------------------+-------------- +------+------------+| Engine | Support | Comment | Transactions | XA | savepoints |+---------

Insert multiple data records using one mysql statement and multiple data records using one mysql statement

Insert multiple data records using one mysql statement and multiple data records using one mysql statement Assume that there is A data table: Id name title addtime To insert n data entries: $time= time();$data = array( array(

Total Pages: 3233 1 .... 3228 3229 3230 3231 3232 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.