第一步、vi /etc/my.cnf 注意!!!在[mysqld]下面加lower_case_table_names=1 我之前加在[mysqld_safe]一直没效果,尴尬。。。。。 第二步、加完之后 service mysqld restart重启就行了。