"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > How to Force Table Names to Retain Case During Export in XAMPP on Windows?

How to Force Table Names to Retain Case During Export in XAMPP on Windows?

Published on 2024-11-09
Browse:778

How to Force Table Names to Retain Case During Export in XAMPP on Windows?

Changing 'lower_case_table_names' Value in XAMPP on Windows

When using Windows 7 with XAMPP, users may encounter issues with table names being converted to lowercase during database export. Resolving this requires modifying the 'lower_case_table_names' value from 0 to 2.

To make this change:

  1. Locate the MySQL configuration file at: [drive]\xampp\mysql\bin\my.ini
  2. Search for the section beginning with "# The MySQL server [mysqld]"
  3. Add the following line immediately below that section: lower_case_table_names = 2
  4. Save the file and restart the MySQL service

After completing these steps, the 'lower_case_table_names' value is updated, and table names will retain their case during export.

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

Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3