Implementation principle of mysqldump and implementation principle of mysqldump
MySQL backup can be divided into the following two types:
1. Cold backup
2. Hot Standby
Among them, cold backup, as its name implies, is to turn off the database and use
Mud: mysql HELP command instructions, mud mysql
Do you need to remember many mysql commands when installing, managing, and using mysql. In addition, for beginners, there are not many commands that do not know how to apply them. For veterans, many
Objective
DDL (data definition Language) Statements: Data definition statements that define different data segments, databases, tables, columns, indexes, and other database objects. The commonly used statement keywords include create, drop,
3 Basic operation of MySQLAbove we learn how to install a database, then this section we come to know the database;we are after MySQL installation, in the data directory will automatically generate several necessary databases, you can use SHOW
Describe
Specification
Example
Link Database
Mysql-u User name-p password
Mysql-uroot-proot
Exit database
Exit,quit,ctrl+d
*
Show Database version
Select version ();
*
How to close the database:1. Graceful way to close the database:mysqladmin-uroot-p123456 shutdown2. Script Close:/etc/init.d/mysqld stop3. Method of using kill signal (preferably not used)KILL-USR2 ' Cat path/pid 'History does not record historical
9.1 Creating a DatabaseCommand syntax: Create database Note Library name cannot start with a numberIn the case of MySQL default character set, the database test is as follows:A. Creating a database named ZBF[email protected] 08:3120->create database
To create a database:Creating a database of the default character set CREATE Database Oldboy;show Create databases oldboy\g creates a DB Odlboy_utf8 default character for the specified character set Set UTF8 collate utf8_general_ci;show CREATE
Conventions:Commands entered under Shell>windowmysql> after entering MySQL program, enter the MySQL commandI. Introduction to SQL1. sql:structured Query Language structured querying languageHe's the client's channel for dealing with the database.2,
The following command lines are used in Windows 64-bit operating systems. Before learning, Let's explain the meanings of some symbols in the MySQL Syntax: (1) brackets ([]) indicate that both exist or do not exist. They are optional parameters. For
This article mainly introduces thinkphp's database backup method sharing, which is very simple and practical. We recommend it to friends who need it.
This article mainly introduces thinkphp's database backup method sharing, which is very simple and
How to use MySQL character set bitsCN.com for non-English websites
How to use MySQL character sets for non-English websites
For non-English websites, when they use non-English languages to write or read data from the database, it is often
MySQL learning footprint record 01-SOURCE, SHOW bitsCN.com
MySQL learning footprint record 01-SOURCE, SHOW
1. import data
command: SOURCE
; eg: mysql> source ~/MyDoc/create.sql;
2. SHOW COLUMNS FROM
The shortcut is
This article mainly introduces thinkphp's database backup method sharing, which is very simple and practical. it is recommended that THINKPHP has no database backup method, so I wrote one myself, pdo is used for database connection and transaction
This article mainly introduces thinkphp's database backup method sharing, which is very simple and practical. it is recommended that THINKPHP has no database backup method, so I wrote one myself, pdo is used for database connection and transaction
MySQL learns basic MySQL database operations on the fifth day.
This article studies the basic operations of MySQL databases. Do not miss this article.
The following command lines are used in Windows 64-bit operating systems.
Before learning, Let's
This article aims at the MySQL database basic operation carries on the study research, needs to understand the friend not to miss this article.
The following are used on the command line under Windows 64-bit operating systems.
Before we learn, let'
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.