问题
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’