1. An error (1064) is reported when using mysqldump. This is because the mysqldump version is too old and inconsistent with the current database version. mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an error in your SQL syntax; check the manual that [root@bastion-IDC ~]# mysqldump --version [root@bastion-IDC ~]# mysql //Or log in to mysql, select version(); You can also view the version In this case, you must know the absolute path of mysqldump, which is in the mysql installation directory. 2. Specify the character set when exporting, and an error will be reported Character set 'utf-8' is not a compiled character set and is not specified. This is because the character set is wrong. Yes --default-character-set=utf8 3. Warning when exporting: A partial dump from a server that has GTIDs [root@bastion-IDC ~]# mysqldump -uroot -p xqsj_db > xqsj_db20160811.sql Regarding GTID, after 5.6, the global transaction ID (GTID) was added to enhance the master-slave consistency, fault recovery, and fault tolerance of the database. This can be set by adding the following two parameters: --set-gtid-purged=off or --gtid-mode=OFF. It is very likely that the GTID is regenerated in the import library instead of the original one. [root@bastion-IDC ~]# mysqldump -uroot --set-gtid-purged=off -p xqsj_db > xqsj_db20160811.sql #That's it! The above article discusses the problem of mysqldump data export in detail. This is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: js to implement verification code interference (dynamic)
>>: Nginx location matching rule example
A website uses a lot of HTML5 and CSS3, hoping th...
JavaScript can do a lot of great things. This art...
An optimization solution when a single MYSQL serv...
First, let’s take a look at a CSS carousel animat...
VC6.0 is indeed too old VC6.0 is a development to...
Table of contents 1. Docker Image 2. Create an in...
We all know that the commonly used positioning me...
There are two ways to configure multiple projects...
This article uses vue, and adds mouse click event...
1. Installation and use First, install it in your...
Teaching Topics Web page Applicable grade Second ...
This article shares the specific code of vue echa...
This article mainly describes two kinds of underl...
Table of contents Kill instruction execution prin...
Preface: Today I want to remotely connect to MySQ...