1、修改配置文件
vim /etc/my.cnf
在 [mysqld] 节的最后加上这句:lower_case_table_names=1
2、重启MySQL服务
service mysqld restart
搞定!