centos mysql 默认是区分大小写的,修改成不区分大小写

时间:2021-09-10 04:46:29

修改mysql为不区分大小写设置:

[root@test-huanqiu ~]# vim /etc/my.cnf //添加下面一行设置
....
[mysqld]
lower_case_table_names=1
.....

[root@test-huanqiu ~]# /etc/init.d/mysql restart //重启mysql