mysql导入报错Variable 'sql_notes' can't be set to the value of 'NULL'

报错信息:

执行的SQL语句出错:

/*!40111 SET [email protected]_SQL_NOTES */

错误信息:Variable ‘sql_notes‘ can‘t be set to the value of ‘NULL‘

检查:

错误信息是说sql_notes不能设置为null值,登录检查如下

mysql> select @@sql_notes;

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

| @@sql_notes |

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

|       1 |

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

1 row in set (0.00 sec)

解释:

SQL_NOTES = {0 | 1}

当设置为1时(默认情况),“注意”一级的警报被记录下来。当设置为0时,“注意”警告被压制。Mysqldump包含输出,用于把此变量设置为0,这样,对于不会影响重新载入操作整体性的事件,重新载入转储文件时不会产生警告

解决:

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导入报错Variable 'sql_notes' can't be set to the value of 'NULL'

时间: 2024-09-30 10:16:09

mysql导入报错Variable 'sql_notes' can't be set to the value of 'NULL'的相关文章

mysql导入报错 ERROR 1286 (42000) at line 1: Unknown table engine 'InnoDB'

[[email protected] mysql]# mysql -u root -p'123456'  jiang < schema.sql                 ERROR 1286 (42000) at line 1: Unknown table engine 'InnoDB' mysql> select * from ENGINES; +------------+---------+-----------------------------------------------

数据导入报错:Got a packet bigger than‘max_allowed_packet’bytes的问题

数据导入报错:Got a packet bigger than‘max_allowed_packet’bytes的问题 2个解决方法: 1.临时修改:mysql>set global max_allowed_packet=524288000;修改 #512M 2.修改my.cnf,需重启mysql. 在 [MySQLd] 部分添加一句(如果存在,调整其值就可以): max_allowed_packet=10M

数据导入报错 Got a packet bigger than‘max_allowed_packet’bytes

数据导入报错:Got a packet bigger than‘max_allowed_packet’bytes的问题 2个解决方法: 1.临时修改:mysql>set global max_allowed_packet=524288000;修改 #512M 2.修改my.cnf,需重启mysql 在 [MySQLd] 部分添加一句(如果存在,调整其值就可以): max_allowed_packet=10M

mysql workbench 报错:Can&#39;t analyze file, please try to change encoding type...

workbench 识别csv第一行作为column名,column名不能为中文,所以报错.解决方法:csv第一行改为英文列名,再进行导入. mysql workbench 报错:Can't analyze file, please try to change encoding type... 原文地址:https://www.cnblogs.com/HeartBlood/p/11888165.html

mysql编译报错

1.make报错现象 Warning: Bison executable not found in PATH 解决办法 yum -y install bison 2.make报错现象 ake Error at /usr/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:17 (get_filename_component):get_filename_component called with incorrect number of argumen

mysql安装报错

如果编译时出现了以下错误:checking for tgetent in -ltermcap- nochecking for termcap functions library- configure: error: No curses/termcap library found说明 curses/termcap 库没有安装去下载一个ncurses-5.6.tar.gz,wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gztar zx

启动MYSQL 57 报错“The service MYSQL57 failed the most recent........等”的问题解决方式!

每天开机之后,启动MYSQL Notifier就报错,第一次出现重启电脑后解决,后面的几天老是出现,重启电脑好几次都没有解决,感觉很烦人,一定要搞定这个问题找到原因,于是有了下文....... 启动MYSQL 57报错信息"The service MYSQL57 failed the most recent status change request with the message time out has expired and the operation has not been comp

MySql启动报错,无法更新PID文件

MySql启动报错 Starting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql..) 1,查看错误日志 2017-08-10 19:38:14 31865 [Note] InnoDB: Initializing buffer pool, size = 50.0M InnoDB: mmap(53657600 bytes) failed; errno 12 2017-08-10 19:38:14

MYSQL 内存报错 Use &#39;mysqld --thread_stack=#&#39; to specify a bigger stack.

MYSQL 内存报错 Use 'mysqld --thread_stack=#' to specify a bigger stack. 今天在使用mysql的过程中,连接数据库始终无法成功 最后发现是数据库无法执行增加修改的操作 :错误代码 Thread stack overrun:  11552 bytes used of a 131072 byte stack, and 128000 bytes needed.  Use 'mysqld --thread_stack=#' to specif