views:

164

answers:

2

Like accountId -> accountid

Has anyone met this kind of problem?

It doesn't happen every day,though.

+1  A: 

The capitalization is a configuration option, which is enabled by default on windows (and disabled on linux). From the docs:

Consequently, the case sensitivity of the underlying operating system plays a part in the case sensitivity of database and table names. This means database and table names are not case sensitive in Windows, and case sensitive in most varieties of Unix.

soulmerge
Which suxx, because you may store you record in an associative array which is case sensitive.
Notinlist
@Notinlist,that's how I discovered this problem!
A: 

what do have when you run SHOW VARIABLES

http://dev.mysql.com/doc/refman/5.1/en/show-variables.html?

e.g. lower_case_table_names?

davek
I forgot to check that,just `alter table change accountid accountId ...`.There should be a reason why it happens every several days
Does it affect the result of `mysqldump .. db`?I remembered that I used the output to re-create the database several days ago.