The problems needing attention when using mysqldump tool _mysql

Source: Internet
Author: User
Tags one table
The description is as follows:
Use mysqldump to export Trigger when encountered a problem, posted out, lest everyone make mistakes.

When you perform the following actions:
Copy Code code as follows:

[Root@ytt ~]#/usr/local/mysql/bin/mysqldump-s/tmp/mysql1.sock Test > Test.sql

The results of the export contain Trigger.
Copy Code code as follows:

[Root@ytt ~]#/usr/local/mysql/bin/mysqldump-s/TMP/MYSQL1.SOCK-RDTN Test > Test_sp.sql

The results of the export still contain Trigger.
An error occurred while importing:

[Root@ytt ~]#/usr/local/mysql/bin/mysql-s/tmp/mysql1.sock--database Test < Test.sql
[Root@ytt ~]#/usr/local/mysql/bin/mysql-s/tmp/mysql1.sock--database Test < Sp.sql
ERROR 1235 (42000) at line 26:this version of MySQL doesn ' t yet support ' multiple triggers with the same action time and Event for one table '


Solution:

Default without any parameters when the Tiggers value is true, then we modify his value is false, to mysqldump plus switch:--triggers=false can.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.