-
-
Save rponte/2895712 to your computer and use it in GitHub Desktop.
Case Sensitivity no MySQL
This file contains 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
Procure a pasta de instalação do MySQL. | |
No linux fica em etc/mysql | |
Abra o arquivo my.cnf como root e procure por essa trecho: | |
[mysqld] | |
# | |
# * Basic Settings | |
# | |
# | |
# * IMPORTANT | |
# If you make changes to these settings and your system uses apparmor, you may | |
# also need to also adjust /etc/apparmor.d/usr.sbin.mysqld. | |
# | |
user = mysql | |
socket = /var/run/mysqld/mysqld.sock | |
port = 3306 | |
basedir = /usr | |
datadir = /var/lib/mysql | |
tmpdir = /tmp | |
skip-external-locking | |
#lower_case_table_names=1 | |
Provavelmente estará comentado. | |
#lower_case_table_names=1 | |
Retire o comentário. Dessa forma você esta obrigando o MySQL sempre criar, executar SQL em minúsculos. | |
lower_case_table_names=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment