MySQL master-slave replication (using mysqld_multi)
Here, I use two MySQL instances on a single server to build them, mainly using the mysqld_multi I. Replication PrincipleBefore starting the setup, you need to add the following basic knowledge
Install MySQL 5.6.15 in Linux
This article briefly explains how to install MySQL 5.6.15 in Linux.
1. Download MySQL 5.6Download Page: http://dev.mysql.com/downloads/mysql/Select "Red Hat Enterprise Linux 6/Oracle Linux 6 (x86, 32-bit), RPM Bundle"
Oracle SQL statement tracking
1. SQL statement tracking
The execution of SQL statements must be performed on the Oracle server. The Oracle server detects and records all SQL statements executed by the access process. The commands used below are all
The corresponding index cannot be deleted when the primary key is deleted. drop constraint
-- The index is not deleted when a table primary key is deleted. If the primary key index is created with the primary key constraint,The index is
MySQL modifies the copied user and password
In the production environment, you sometimes need to modify the password for copying a MySQL user account, for example, if the password is lost, or because multiple different copy users want to be a single
Oracle cursor use full solution
This document covers almost all aspects of Oracle cursor use, all passed the test
-- Declare the CURSOR; CURSOR cursor_name IS select_statement
-- For Loop cursor-- (1) define a cursor-- (2) define the cursor
Redis master-slave configuration and Sentinel Construction
As one of the mainstream nosql database products, redis is widely used. This article describes the master-slave configuration method of redis and how to ensure high availability and
MySQL sets the default database Encoding
If the encoding method is not selected during MySQL installation, the system selects latin1 encoding by default, in the MySQL Console window, enter show variables like 'Char % 'to view the default sequence
Python accesses the MySQL database and supports addition, deletion, modification, and query.
Overview:I want to know more about accessing the MySQL database. However, since I recently learned Python, I will use Python to implement it below. These
Configure MySQL master-slave replication in Linux
MySQL master-slave replication is a practical experience that you have always wanted to learn, because the master-slave replication in Oracle also requires a lot of configuration options. In contrast,
MySQL uses the index scenario and the SQL type that actually uses the index, mysqlsql
1. Why are indexes used?Without an index, MySQL scans the entire table to find records that meet the SQL conditions. The time overhead is positively related to the
Mysql trigger, mysql trigger instance
Trigger 1. Definition: a specific operation is triggered by insert, update, delete, and other events. The trigger can trigger multiple execution statements. Note: triggers cannot contain keywords such as start
MySQL study note _ 3_MySQL create a data table (medium) and study note _ 3_mysqlCreating a data table in MySQL 3. Data field attributes
1. unsigned [unsigned]
Space can be doubled, for example,-128 ~ 127 increase to 0 ~ 255
Note: Only numeric fields
MySQL Study Notes _ 5_ SQL language design and writing (on), study notes _ 5_ SQL SQL language design and writing (I)
I. SQL statement Classification
Data Definition Language (DDL ):
Defines and manages data objects, including databases, data
Redis learning, redisFeatures of Redis master-slave copy
After the slave is connected to the master, slave sends a SYNC command to the master. After the master receives the command, whether it is the first connection established during
Consistency Test and open consistency test in the open stageIn the open stage, oracle requires consistency check before it can open the database. What tests have been done?Check whether the Checkpoint CNT in the data file header is consistent with
Sqlserver locks a row of data, prohibit reading, modifying, and deleting, and a row
In SQL transactions, you sometimes need to lock a row and release the row after the transaction is completed.
Use with (ROWLOCK, UpdLock) to lock the current row.
Aerospike-Architecture Distributed, aerospikeDistribution)
The Aerospike database is a component provided for 24/7 running applications that can reliably process big data.
When developing an application, you don't have to worry about where the
Mysql imports data to excel, mysqlexcel
Create a test data table first
Create table users (
Username varchar (40) not null,
Password varchar (40) not null) charset = utf8;
Insert data
Insertinto users values ("admin", "admin ");
Insertinto users
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