MySQL can't find table name on Linux - handle ignore case

Linux finds the my.cnf file

# find / -name my.cnf


Modify to solve the case problem

and add in the file: lower_case_table_names=1
[mysqld]
datadir = / var / lib / mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
lower_case_table_names=1

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


Restart Mysql to take effect
#service mysqld start  
#service mysqld stop

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326449406&siteId=291194637