Variable ‘time_zone’ can’t be set to the value of ‘NULL’ 解决方法Variable ‘time_zone’ can’t be set to the value of ‘NULL’ 解决方法Variable ‘time_zone’ can’t be set to the value of ‘NULL’ 解决方法Variable ‘time_zone’ can’t be set to the value of ‘NULL’ 解决方法
  • 首页
  • 博客
  • 书签
  • 文件
  • 分析
  • 登录

Variable ‘time_zone’ can’t be set to the value of ‘NULL’ 解决方法

发表 admin at 2022年1月31日
类别
  • Database
标签

MYSQL恢复数据库时出现如下错误:

ERROR 1231 (42000): Variable ‘time_zone’ can’t be set to the value of ‘NULL’

ERROR 1231 (42000): Variable ‘sql_mode’ can’t be set to the value of ‘NULL’

ERROR 1231 (42000): Variable ‘foreign_key_checks’ can’t be set to the value of ‘NULL’

ERROR 1231 (42000): Variable ‘unique_checks’ can’t be set to the value of ‘NULL’

ERROR 1231 (42000): Variable ‘character_set_client’ can’t be set to the value of ‘NULL’

Query OK, 0 rows affected (0.00 sec)

解决方式:

mysql> set global max_allowed_packet=1000000000;

mysql> source ./my_db.sql;

发表回复 取消回复

要发表评论,您必须先登录。

类别

  • Cat
  • Python
  • Django
  • Database
  • Html/CSS
  • JavaScript
  • Vue
  • RegExp
  • Maths/AI
  • PHP/Wordpress
  • Practice
  • Linux
  • Windows
  • Android
  • NAS
  • Software
  • Hardware
  • Network
  • SEO
  • English
  • Games
  • Recipes
  • General
  • Memorandum
  • Essays
  • 未分类

归档

©2015-2023 艾丽卡 Blog support@alaica.com
      ajax-loader