MySQL运行SQL:[ERR] 1231 - Variable ‘time_zone‘ can‘t be set to the value of ‘NULL‘

问题

MySQL恢复备份数据库,出错:

[ERR] 1231 - Variable 'time_zone' can't be set to the value of 'NULL'

解决

在sql文件的末尾中有这样的注释:

/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

删掉即可。



参考

【1】:Error on re-import: #1231 - Variable ‘character_set_client’ can’t be set to the value of ‘NULL’

猜你喜欢

转载自blog.csdn.net/sinat_40770656/article/details/112919508
今日推荐