Good day stack overflow.
I am having problems on importing an sql file to my windows machine. The sql file is from a linux machine. What happens is that the table names from linux are camel cased and when migrated to windows, all becomes lower cased. I don't want to adjust my codes to be able to access my database so is there anyway that I could achieve the camel-cased table names in windows?
Many thanks.
From linux table names: -> FooBar
When it is imported to mysql workbench in windows: -> foobar
the query looks like this:
SELECT * FROM FooBar; // when the program is pointed to the database in windows, it will spit out that the table does not exist because the table name is "foobar"
There is a difference between Linux and Windows on how both operating systems store the table names (allowing lower case only or not). This can be controlled by the
lower_case_table_names
system variable. Your Windows installation, probably has this value set to 1 and your Linux server had this value set as 0. Following the "Identifier Case Sensitivity" part of the User Manual, you have two options:or
Some links:
lower_case_table_names
System Variable