camelCase Table Names in MySQL on Windows

March 12, 2010
by Julian

If you are using a WAMP stack, like WAMP or XAMPP, and try to create a table in camelCase ( example: adminLogin) you will notice that camelCase is not working, table name will be lowercase: adminlogin.
In order to fix this, you need to add to your my.cnf file the line:

lower_case_table_names=2

and restart mysql.

More on that here: http://dev.mysql.com/doc/refman/4.1/en/server-system-variables.html#sysvar_lower_case_table_names

This entry was posted in DotKernel. Bookmark the permalink.

2 Responses to camelCase Table Names in MySQL on Windows

  1. Pingback: camelCase Table Names in MySQL on Windows ยป DotKernel

  2. Emad April 27, 2010 at 10:53 am

    Hi There

    Thanks for the help, but I am a novice to MySQL can cannot find my.cnf file

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">