snippetsqlCritical
How to make MySQL table name case insensitive in Ubuntu?
Viewed 0 times
caseinsensitiveubuntumakemysqlnamehowtable
Problem
I am using Ubuntu 13.10 and MySQL 5.6 and I know database name and table name are case sensitive in Ubuntu (and some other *nix environments) by default.
Now, I want to make MySQL work as case insensitive in Ubuntu.
Is it possible? If yes, how can I do it?
Now, I want to make MySQL work as case insensitive in Ubuntu.
Is it possible? If yes, how can I do it?
Solution
Open terminal and edit
Underneath the
Restart mysql
Then check it here:
/etc/mysql/my.cnf sudo nano /etc/mysql/my.cnfUnderneath the
[mysqld] section.add: lower_case_table_names = 1Restart mysql
sudo /etc/init.d/mysql restartThen check it here:
mysqladmin -u root -p variablesCode Snippets
sudo nano /etc/mysql/my.cnflower_case_table_names = 1sudo /etc/init.d/mysql restartmysqladmin -u root -p variablesContext
StackExchange Database Administrators Q#59407, answer score: 61
Revisions (0)
No revisions yet.