Skip to content

Instantly share code, notes, and snippets.

@jjhoncv
Forked from jansanchez/gist:7893091
Last active August 29, 2015 14:15
Show Gist options
  • Save jjhoncv/431343fd998277e8573f to your computer and use it in GitHub Desktop.
Save jjhoncv/431343fd998277e8573f to your computer and use it in GitHub Desktop.

MySQL lower case table names sensitive in linux

Type in your terminal

sudo vim /etc/mysql/my.cnf

Edit the file adding the entry lower_case_table_names=1 just under the group definition: [mysqld]

lower_case_table_names=1

It will look like

[mysqld]
#
# * Basic Settings
#
lower_case_table_names=1
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking

Restart mysql

sudo service mysql restart

Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment