Last active
June 10, 2021 06:56
-
-
Save jansanchez/7893091 to your computer and use it in GitHub Desktop.
MySQL lower case table names sensitive in linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MySQL case 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 | |
``` | |
### 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
Thank for sharing, although this doesn't work with MySQL 8.
https://bugs.mysql.com/bug.php?id=90695
A workaround is suggested here but be careful.
https://stackoverflow.com/questions/53103588/lower-case-table-names-1-on-ubuntu-18-04-doesnt-let-mysql-to-start/53175727#53175727
Best solution so far to initialize MySQL data directory with the lower_case_table_names=1
https://stackoverflow.com/a/63141850/1084568