言归正传
一,在windows下设置
1,到安装mysql的目录,修改my.ini文件,如果没有,则创建一个
2,在[mysql]的下面加上一句话
lower_case_table_names=1
如图
3,重启mysql
二,在linux下设置
1,进入etc下面
cd /etc/
2,编辑my.cnf文件
vi my.cnf
3,同样在[mysql]下面一句
lower_case_table_names=1
4,完整文件
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
[mysqld]
#
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for de