sudo gedit /etc/mysql/my.cnf 打开my.cnf 在[mysqld]下添加lower_case_table_names=1 重启:sudo /etc/init.d/mysql restart