MySQL_ERROR 1231 (42000) at line XX in file 'file_name' Variable 'time_zone' can't be

  • 类似的错误信息如下
ERROR 1231 (42000) at line 10370 in file: '/root/sql/ultrax_170322.dmp': Variable 'time_zone' can't be set to the value of 'NULL'
ERROR 1231 (42000) at line 10372 in file: '/root/sql/ultrax_170322.dmp': Variable 'sql_mode' can't be set to the value of 'NULL'
ERROR 1231 (42000) at line 10373 in file: '/root/sql/ultrax_170322.dmp': Variable 'foreign_key_checks' can't be set to the value of 'NULL'
ERROR 1231 (42000) at line 10374 in file: '/root/sql/ultrax_170322.dmp': Variable 'unique_checks' can't be set to the value of 'NULL'
ERROR 1231 (42000) at line 10375 in file: '/root/sql/ultrax_170322.dmp': Variable 'character_set_client' can't be set to the value of 'NULL'
Query OK, 0 rows affected (0.00 sec)

ERROR 1231 (42000) at line 10377 in file: '/root/sql/ultrax_170322.dmp': Variable 'collation_connection' can't be set to the value of 'NULL'
ERROR 1231 (42000) at line 10378 in file: '/root/sql/ultrax_170322.dmp': Variable 'sql_notes' can't be set to the value of 'NULL'

在网上查阅了资料说是备份的时候添加了注释,在导入的时候会出问题,具体是什么原因,也没有详细了解,按照网上的做法把这些语句给注释掉,然后就可以正常导入了

参考:http://blog.csdn.net/u012599988/article/details/46606825

转载于:https://www.cnblogs.com/ZhangRuoXu/p/6706440.html

你可能感兴趣的:(数据库)