Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL/Linux Tables Case Sensitive

Status
Not open for further replies.

TomBarrand

Programmer
Aug 9, 2000
162
GB
Hi,

I have moved an application that we have written from running on Windows with SQL Server to running on Linux with MySQL.

Since I have moved the application I am finding issues as MySQL/Linux seems to be case sensitive with how table names are referenced. In SQL Server you can use SET IGNORECASE TRUE to force it to ignore the case.

Is there anyway to do this in MySQL/Linux?

Thanks
 
Since databases are mapped to directories, and MyISAM tables are mapped to files, case-sensitivity depends on the filesystem used. Windows filesystems are not case-sensitive, but Linux systems usually are. However, you can set the variable lower_case_table_names=1 in your my.cnf to convert all table references to lower-case, which effectively makes them case-insensitive. Of course, your file and directory names must also be lower-case for this to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top