MySQL Import error variable ' sql_notes ' can ' t be set to the value of ' NULL '

Source: Internet
Author: User
Tags mysql import

Error message:

An error occurred executing the SQL statement:

/*!40111 SET [Email protected]_sql_notes */

Error message: Variable ' sql_notes ' can ' t is set to the value of ' NULL '

Check:

The error message is that sql_notes cannot be set to a null value, and the login check is as follows

Mysql> SELECT @ @sql_notes;

+-------------+

| @ @sql_notes |

+-------------+

| 1 |

+-------------+

1 row in Set (0.00 sec)

Explain:

Sql_notes = {0 | 1}

When set to 1 o'clock (by default), alerts at the "attention" level are recorded. When set to 0 o'clock, the "note" warning is suppressed. The mysqldump contains output, which is used to set this variable to 0, so that no warning is generated when the dump file is re-loaded for events that do not affect the integrity of the reload operation

Solve:

mysql> SET @ @sql_notes = 0;

Query OK, 0 rows Affected (0.00 sec)


Mysql> SELECT @ @sql_notes;

+-------------+

| @ @sql_notes |

+-------------+

| 0 |

+-------------+

1 row in Set (0.00 sec)


MySQL Import error variable ' sql_notes ' can ' t be set to the value of ' NULL '

Related Article

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.