天天看點

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 */;      

删掉即可。