服务的环境经常变更,水土不服导致程序跑不起来。所有问题均来自配置问题。
1、this is incompatible with sql_mode=only_full_group_by......
MySQL版本问题
https://blog.csdn.net/qq_42175986/article/details/82384160
修改配置文件:
sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
重启mysql服务,顺利解决。
或者临时修改:
select @@GLOBAL.sql_mode;
set@@GLOBAL.sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
2、java.sql.SQLException: Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
MySQL内部字符集编码不统一
https://blog.csdn.net/hqyhqyhq/article/details/9278773
搞不定就手动改表吧,utf8是最安全的。
3、SQLErrorCodes loaded: [DB2, Derby, H2, HDB, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]
MySQL数据插入量过大
MySQL优化:设置max_allowed_packet变量
https://www.cnblogs.com/gmq-sh/p/7096687.html
数据库服务器最好独立,内存吃不消的时候,它会自己改默认配置。。。。。
4、javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
mysql SSL验证配置问题;
将useSSL=true改为useSSL=false
https://blog.csdn.net/wandrong/article/details/83347267