mysql8大小写敏感修改问题

lower_case_table_names can only be configured when initializing the server. Changing the lower_case_table_names setting after the server is initialized is prohibited.


1、安装部署mysql8之后,在初始化之前设置my.cnf配置文件,在[mysqld]中加入lower_case_table_names=1,然后初始化、启动。

2、如已经启动,则需要备份所有数据库后,删除已经产生的日志与数据,按照1重新初始化,再导入之前的备份。

 

鸣谢:https://blog.csdn.net/weixin_29214691/article/details/113220261

posted @ 2022-03-16 15:32  霄•魂  阅读(552)  评论(0)    收藏  举报