===================================================

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代表不区分。

 

相关文章:

  • 2021-08-02
  • 2021-10-22
  • 2021-12-12
  • 2022-01-19
  • 2021-07-10
  • 2021-12-04
  • 2021-08-26
猜你喜欢
  • 2021-09-24
  • 2021-07-14
  • 2021-10-29
  • 2021-08-28
  • 2021-07-07
  • 2021-08-03
  • 2022-01-06
相关资源
相似解决方案