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

绝地灬酷狼 2023-01-09 12:38 71阅读 0赞

问题

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

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

解决

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

  1. /*!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’

发表评论

表情:
评论列表 (有 0 条评论,71人围观)

还没有评论,来说两句吧...

相关阅读