Mysql imports and exports data structures and data bitsCN.com
Mysql import and export data structures and data
Method 1:
Mysqldump-ukevin-P3306 -- default-character-set = utf8-p-h10.1.15.123 activity sign_in_user> user. SQL
The exported
LinuxMySQL password modification bitsCN.com
Linux MySQL password modification
1) If you have not forgotten the password, you can use UPDATE to directly edit the user table to change the password:
Enter mysql-u root
Mysql> use mysql;
Mysql> UPDATE
Mysql rename database bitsCN.com
Renaming a database in mysql
It is not a labor-saving task. If your MySQL version is 5.1.7 and earlier than 5.1.23, you can use the following simple method:
RENAME {DATABASE | SCHEMA} db_name TO new_db_name;
Explanation of mysqlshowstatus bitsCN.com
You can use the following command to view the current status of a server:
1. go to the mysql/bin directory and enter mysqladmin extended-status
2. connectMysql, Enter show status;
3. if you want to view data,
Mysql parameter optimizer_switch bitsCN.com
Mysql parameter optimizer_switch
Optimizer_switch is introduced in mysql 5.1 to control the behavior of the mysql Optimizer. He has some result sets that enable and disable Optimizer behavior through on
Understanding mysql -- (mysql Learning 1) bitsCN.com
Understanding mysql -- (mysql Learning 1)
Mysql product: cpl protocol and commercial version
Cpl protocol: standalone and cluster version
Business: Classic, Standard, Enterprise, cluster
Mysql master/slave database, database/table sharding, and other notes bitsCN.com
Mysql master/slave database, database/table sharding, and other notes
1. mysql Directory:/var/lib/mysql default directory:/usr/local/mysql during rpm or yum
MySQL batch deletes the specified prefix table bitsCN.com
Select CONCAT ('drop table', table_name, ';') FROM information_schema.tables Where table_name LIKE 'dede _ % ';
"Dede" is the prefix of the table to be deleted. after this SQL statement is
Mysql replication function-"master-slave" structure bitsCN.com
Mysql replication function-"master-slave" structure
1. configure the master server
1. add content in my. ini
2. create an account with "copy permission"
Create an account
Grant all
MySQL remote data export and import bitsCN. com1
Because the company's MySQL is built on the server, in order to avoid direct changes to the server, I chose to remotely export and import MySQL data.
Let's take a look at it. in the actual database,
Mysqlxtrabackup incremental backup bitsCN.com
Mysql xtrabackup incremental backup
The incremental backup policy for mysql is full-backup on Monday. for other incremental backups, set the retention date based on business needs, such as January.
Mysql database learning-1, obtain the original data bitsCN.com show databasesshow tablesinformation_schemashow tables statement. The output does not contain the temporary table. View all databases on the server.> show databases view the create
Mysql compressed Chinese garbled solution bitsCN.com
Mysql compressed version Chinese garbled solution
Unlike the installation version, the compressed version of mysql can be configured directly or manually.
Although there are various methods on
Mysql DQL query statement bitsCN.com
---------------- 1. query all columns -- query all records (rows) in the student table select * from student
-- Conditional query select * from student where age> 19
------------------- 2. query the specified
Mysql database learning-1, get the original data bitsCN.com
Mysql database learning-1. get the original data
Show databasesshow tablesinformation_schemashow tables statement output does not contain the temporary table view all the databases on
Mysql basics: mysql column type -- string bitsCN.com
Mysql basics: mysql column type-string
· CHAR
This is a synonym for CHAR (1.
· [NATIONAL] VARCHAR (M) [BINARY]
Variable-length string. M indicates the maximum column length. M ranges from 0 to 65
Mysql basics: delete databases, delete tables, and rename the table bitsCN.com
Mysql basics: delete databases, delete tables, and rename tables
============== Delete a database ====================
Drop database is used to cancel the table used in
Install mysql5.6.12 (cmake compilation) bitsCN.com in Linux source code
Install mysql 5.6.12 (cmake compilation) in Linux source code)
1. install the make compiler (default system)
: Http://www.gnu.org/software/make/
[C-sharp]
Tar zxvf make-3.8
Mysql master from inconsistent solution bitsCN.com
Solution to inconsistent mysql master
Method 1: ignore errors and synchronize
This method is applicable when the data in the master/slave database is not much different or the data requirements
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