1.Mysql配置允许创建函数
问题描述
This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
解决方法
mysql客户端执行(临时生效)
set global log_bin_trust_function_creators=TRUE;
或者修改/etc/my.cnf的[mysqld]配置
log_bin_trust_function_creators=1
重启mysql生效
2.mysql8报错:不允许进行公钥检索 Public Key Retrieval is not allowed
解决方法
修改 spring.datasource.url配置信息添加参数allowPublicKeyRetrieval=true
spring:
datasource:
url: jdbc:mysql://xxx.xx.xx.xxx:3307/dbname?allowPublicKeyRetrieval=true
或者修改加密规则为mysql_native_password
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
也可以修改mysql插件
update mysql.user set plugin='mysql_native_password' where user='root';
3.mysql8大小写配置
lower_case_table_names不同值作用
lower_case_table_names=0,数据库表名存储为给定的大小和比较是区分大小写的
lower_case_table_names=1 ,数据库表名存储在磁盘是小写的,但是比较的时候是不区分大小写
lower_case_table_names=2,数据库表名存储为给定的大小写但是比较的时候是小写的
在mysql 5.x版本中配置lower_case_table_names重启服务就会生效,但是在mysql 8.x版本中只能在初始化mysql服务器时配置。禁止在服务器初始化后更改lower_case_table_names设置。
文章详细介绍了如何在MySQL8中配置允许函数创建、解决公钥检索错误、以及处理大小写敏感性,包括log_bin_trust_function_creators、allowPublicKeyRetrieval和lower_case_table_names的设置方法。
2832

被折叠的 条评论
为什么被折叠?



