Skip to content

Instantly share code, notes, and snippets.

@handersonbf
Created May 20, 2011 14:12
Show Gist options
  • Save handersonbf/982973 to your computer and use it in GitHub Desktop.
Save handersonbf/982973 to your computer and use it in GitHub Desktop.
Case Sensitivity no MySQL
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
@handersonbf
Copy link
Author

Sim, é onde esta localizada a linha #lower_case_table_names=1, bastando retirar o comentário.

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