Environment:10.0.0.51/172.16.1.51 mysql01 main Repository CentOS 7.210.0.0.52/172.16.1.52 mysql02 relay from the library CentOS 7.210.0.0.53/172.16.1.53 mysql03 from the library CentOS 7.2MYSQL01 configuration:[Mysqld]Bind-address =
MySQL master-slave synchronization:1. Why the master-slave synchronization?In Web application system, database performance is one of the main causes of system performance bottleneck. Especially in large-scale systems, database clustering has become
Isolation level of the transaction: READ UNCOMMITTED (UNCOMMITTED)At this level, the changes in the transaction, even if not committed, are visible to other transactions, and the transaction can read uncommitted data. Read COMMITTED (submit
DRBD is a software-implemented, non-shared storage replication solution for mirrored block device content between servers. The functionality of DRBD is implemented through the Linux kernel, which maintains data synchronization through the TCP/IP
First, MySQL master-slave replication schematic diagramMySQL master-slave replication principle: The master-slave replication principle is three threads completed, the main I/O thread, the I/O thread and the SQL thread1, first the main library db01
Small series Today I write a table that imports table data from one database to another database.PHPHeader("Content-type:text/html;charset=utf-8");$conn=mysql_connect("localhost", "root", "" ");mysql_select_db(' Nnd ',$conn);mysql_select_db(' AHJK ',
First, the installation packageDownload the MySQL installation package from the network and copy to the USB flash drive: https://dev.mysql.com/downloads/mysql/Second, mount the U disk2.1 viewing partitions Enter the command first
Here is the MySQL recovery database, which refers to how to recover a database without a normal backup of the data files saved through MySQL.Since the MySQL database is intended to be reinstalled on a test machine, the process can be tragic due to
View query cache condition:mysql> show variables like '%query_cache% '; (Query_cache_type for on indicates already on) +------------------------- -----+----------+| Variable_name | Value |+------------------------------+----------+
Jmeter MySQL Performance test demo1, JMeter is Java development, jmeter connection MySQL database of course need JDBC driver, this can download Mysql-connector-java package on the Internet, and then unzip the jar package into the JMeter Lib
In the company backstage a module function log has a search function, through the previous period of time product use time interval search feedback some lag, I found this search function is relatively slow, to 3 seconds or so to come out, decided to
The original synchronization service is normal, due to the need, the other Side single table new fields, more than 22SBT Assembly Compilation ErrorToo many elements for tuple:26, allowed:22Scala case class supports a maximum of 22 construction
First, prefaceWe often see a warning when we log in to MySQL:Warning:using a password on the command line interface can is insecure.It's uncomfortable to look at, and it's even more uncomfortable when writing a script that warns the output to the
MySQL declaration variables and stored procedure analysis, mysql Stored Procedure
Declare Variables
Set global variables
Set @ a = 'new variable ';
Declear variables used in functions and stored procedures
Declear a int unsigned default 1;
This type
Analysis of mysql union and union all, analysis of mysqlunionall
In the database, the UNION and union all keywords combine the two results into one, but both have different usage and efficiency.
UNION in MySQL
UNION filters out duplicate records
Code example of the Order By multi-field sorting rule in MySQL, mysqlorder
Mentioned above
A whimsy, want to know what rules mysql order by sorting is based on? Okay. If you don't have much to say, go to the topic.
MySql order by single Field
Create
MySQL removes spaces from a field in batches. mysql fields contain spaces.
Is there any way for Mysql to remove spaces in characters in a field in batches? It is not only a space before and after the string, but also a space in the middle of the
Mysql database insertion speed and read speed adjustment, mysql database
Reading and inserting updates of millions of data in mysql is normal, but the speed will be slow after tens of millions. How to adjust the configuration to improve efficiency.
Mysql master-slave synchronization configuration and mysql master-slave Synchronization
1. Install mysql on two Ubuntu machines1. Check whether mysql is installed in the system.
This is already installed
Run the preceding command if no
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