Xtrabackup Physical backup +binlog full backup
To create a backup directory:#mkdir /back/fullBackup:#innobackupex --user=root --password=‘123‘ /back/full
Full backup recovery process
Close database: #systemctl stop mysqldClean
Linked table QueryInternal connection ' [inner| Cross] JOIN 'Unconditional Internal connection:Unconditional internal connection, aka Cross connect/Cartesian connectionEach item in the first table will be combined with each of the other tables in
After using the VPS for a period of time, you find that the disk space is almost full. My VPS bought a 500GB disk at the time of purchase, and the provider presented a 20GB high-performance system disk. So the system has two disk space. The database
Preparatory workCreate and enter the database:CREATE DATABASE ' info '; use ' info ';#创建学院表:CREATE TABLE INTPRIMARYKEYVARCHAR (not NULL );#创建学生表:CREATE TABLE INTPRIMARYKEYVARCHAR (not NULL INT, FOREIGN KEY REFERENCES ' Department ' (' ID '));#
Definition of the storage engineDatabase storage engine is the database underlying software organization, database management System (DBMS) through the storage engine to create, delete, modify, query data. Different storage engines provide different
Linux operation MySQL DatabaseMysql-u root-p Wait for the password to be entered, the password is not visible. then enter the password. (Root is the user name), then go to MySQL1. Display Databaseshow databases;2. Select DatabaseUse database name;3.
Explain is typically used for parsing SQL.As follows[SQL]Plain Text View Copy Code?
010203040506070809101112131415161718192021222324252627282930
drop table if exists test1;CREATE TABLE test1 ( id INT NOT NULL primary
Reference and http://blog.csdn.net/xingyu0806/article/details/52080962Ifnull (EXPR1,EXPR2)If EXPR1 is not NULL, the return value of Ifnull () is expr1; Otherwise its return value is EXPR2 (numeric or string). The return value of Ifnull () is either
MySQL Master-slave replication
With the development of technology, in the actual production environment, the single MySQL database server can not meet the actual demand. At this point the database cluster is a good solution to this problem.
MySQL Storage engineAvailable as pluggable components:-Responsible for performing the actual data I/O operations for the database, different storage engines, and the way they store the data.-The user accesses the MySQL database via a connection and
MySQL version 5.7Database connection Version mysql mysql-connector-java 6.0.6Link stringJdbc.driver=com.mysql.cj.jdbc.driverjdbc.url=jdbc:mysql://localhost:3306/usercenterdb?characterencoding=utf8&useunicode=true&
I. Overview MySQL provides database replication (replication) functionality from the 3.23.15 release, which enables two database synchronization, master-slave mode, and backup mode. This document mainly describes how to use MySQL's replication in
----------The primary database
---------from the database
192.168.1.1
192.168.1.2
First, the preparatory work1. Turn off the firewall[[Email protected] ~]# service iptables stop[Email protected] ~]# chkconfig
Website Ranking optimization: http://dev.mysql.com/doc/refman/5.5/en/order-by-optimization.htmlMySQL supports ASC or desc sorting when creating an index .Instance shows simultaneous creation of indexes when creating tables descending sort (normal
Today, when I visited the MySQL project, I suddenly reported a 500 error, no connection was found, so I thought of MySQL connection time.Mysql> show global variables;The main thing is that the connection time is 28800 (8 hours), and the Task
Execution problem between mysql max and where, mysqlmax
Execution problem between mysql max and where
Execute SQL:
Create table 'grades '('Id' int (20) not null AUTO_INCREMENT,'Student _ id' int (20) not null,'Subobject' varchar (20) COLLATE
Row Operations of SQL statements: rows of SQL statements
SQL statements are explained in the following articles:
1. SQL statement Row Operations
2. SQL statement-based table operations
3. Database Operations for SQL statements
4. SQL statement user
Considerations for mysql indexes and considerations for mysql IndexesAdvantages of Indexes
Greatly speed up Data Query
When you use grouping and sorting to query data, you can significantly reduce the time for grouping and sorting during query.
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