Forum Moderators: coopster

Message Too Old, No Replies

mysql table and field cases

         

jackvull

12:30 pm on Jun 25, 2006 (gmt 0)

10+ Year Member



Is there a way to get PHP and MySQL to ignore table and field cases on Linux?
Seems to work fine on windows but when transferring code to a Linux server
SELECT * FROM TableName no longer works...

it has to be the correct case
SELECT * FROM tablename

eelixduppy

4:24 am on Jun 26, 2006 (gmt 0)



You may be able to find just what you are looking for here [dev.mysql.com]. Good luck!

vincevincevince

4:34 am on Jun 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It comes down to the fact that filenames in general are case-sensitive with linux/unix systems (well, most of them).

There are some partial work-arounds in the manual page referenced above, but I recommend that you pick a case and stick with it. I only ever use lower case for tables and databases.