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
To view the version and tag of the image, you nee...
1. First log in to the Alibaba Cloud website to r...
The MySQL server is running with the --skip-grant...
Official documentation: https://nginx.org/en/linu...
This article example shares the specific code of ...
Recently, an online security scan found a vulnera...
There are many attributes in CSS. Some attributes...
Table of contents Preface Features of Vue Native ...
In the previous article, I introduced the detaile...
Table of contents javascript tamper-proof object ...
mysql-5.7.9 finally provides shutdown syntax: Pre...
This article shares the installation and configur...
Table of contents Business Background Using Techn...
The full name of Blog should be Web log, which mea...