Home > Database > Mysql Tutorial > body text

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

Barbara Streisand
Release: 2024-11-02 07:08:29
Original
743 people have browsed it

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]xamppmysqlbinmy.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/

The above is the detailed content of How to Force Table Names to Retain Case During Export in XAMPP on Windows?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!