Unexpected Problem with MySQL Query in Linux
Posted Date Unknown Tom Thomas 2 Comments

Hi All,

Please the query below especially the two table names..

string strSelectQuery = "SELECT MAX(MsgID) AS MsgID FROM FRM_Message_TB ";

string strSelectQuery = "SELECT MAX(MsgID) AS MsgID FROM FRM_MESSAGE_TB ";

The last one executed correctly in Linux MySQL and the First one didn't executed correctly in Linux. In fact it thrown an Exception and I have to pay a big price for this because of its after effects (All messages got deleted because of  MsgID Returning -1 in program).

Any idea why the tables are case sensitive in Linux MySQL but not in Windows MySQL?


See All Responses Below...
Message Rating
Posted on: 02/08/2012
Hi Tom, 

This is due to the own OS storage system. So, case sensitive is extensible to the OS that manages the DBMS. This means that in Windows tables and databases are not case sensitive while in Linux they are.

MySQL provides a system variable lowe_case_table_names that affects how MySQL manages case sensitivity. You can get more info at:

Posted on: 02/08/2012
Hi Borja,

Thanks for the information. But it is really surprising that the SQL Standard didnt take care of this aspect as it might end up in big problems when we create cross platform SQL query ..

Share this page across other social networking sites

Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

Academic Projects