===================================================
1、太多的连接 Too many connections
2、this is incompatible with sql_mode=only_full_group_by
===================================================
1、太多的连接 Too many connections
SQL修改
set GLOBAL max_connections = 9000; show variables like '%max_connections%';
SET PERSIST max_connections = 9000;
配置修改
# 在 /etc/mysql/my.cnf 中追加 max_connections = 9000 max_user_connection=9000
utf8_genera_ci 不区分大小写,ci 为 case insensitive 的缩写,即大小写不敏感。
utf8_general_cs 区分大小写, cs 为 case sensitive 的缩写,即大小写敏感
2、this is incompatible with sql_mode=only_full_group_by
直接设置
select @@sql_mode set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; set session sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
修改配置
[mysqld] sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; lower_case_table_names的值,0代表区分,1代表不区分。