Notes when using mysqldump

Source: Internet
Author: User

Description:
When using mysqldump to export a trigger, you may encounter a problem and paste it to avoid mistakes.

When you perform the following operations:CopyCodeThe Code is as follows: [root @ YTT ~] #/Usr/local/MySQL/bin/mysqldump-S/tmp/mysql1.sock test> test. SQL

The exported result contains the trigger.Copy codeThe Code is as follows: [root @ YTT ~] #/Usr/local/MySQL/bin/mysqldump-S/tmp/mysql1.sock-rdtn test> test_sp. SQL

The exported result still contains the 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:

If the tiggers value is true by default without any parameters, we can modify the value to false and add the switch -- triggers = false to mysqldump.

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.