Search code examples
mysqlxampp

Where to change the value of lower_case_table_names=2 in XAMPP on Windows?


I am using Windows 7 and XAMPP. I am trying to export my database and while in the process the table names are converted to lower case.

I have searched a lot, I know I have to change the value of lower_case_table_names from 0 to 2, but where do I have to change this value, in which file?


Solution

  • Do these steps:

    1. open your MySQL configuration file: [drive]\xampp\mysql\bin\my.ini
    2. look up for: # The MySQL server [mysqld]
    3. add this right below it: lower_case_table_names = 2
    4. save the file and restart MySQL service

    From: http://webdev.issimplified.com/2010/03/02/mysql-on-windows-force-table-names-to-lowercase/