解决ERROR 1231 (42000): Variable ‘time_zone‘ can‘t
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决ERROR 1231 (42000): Variable ‘time_zone‘ can‘t相关的知识,希望对你有一定的参考价值。
解决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) ERROR 1231 (42000): Variable 'collation_connection' can't be set to the value of 'NULL' ERROR 1231 (42000): Variable 'sql_notes' can't be set to the value of 'NULL'
解决办法:
修改mysql配置文件:max_allowed_packet=1024M
重启mysql:
# systemctl restart mysql.service
以上是关于解决ERROR 1231 (42000): Variable ‘time_zone‘ can‘t的主要内容,如果未能解决你的问题,请参考以下文章
解决mysql 8报错 ERROR 1064 (42000): You have an error in your SQL syntax
解决mysql 8报错 ERROR 1064 (42000): You have an error in your SQL syntax
mysql-ERROR 1140 (42000)错误解决办法
解决——》ERROR 1064 (42000)You have an error in your SQL syntax; check the manual that corresponds
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'ambari