MySQL Lowercase Table Names in Windows Uppercase names on Unix -


I have a problem from which my production server runs Unix and my dev server runs MS Windows The problem is that Windows is case sensitive Is not and is unix. Therefore, on my production table, my table set uses uppercase table names like "client" and the table name on Windows is in lowercase "customer".

It's all right until you need to get data from a box, second and put your SQL export into "customer" in "lowercase", and "clients of uncountable table" succeed . Because the production server is currently on a shared hosting plan, I can not change the setting and can install a key that ignores the case.

So my question is, is there a way to change the table back in the right case or there is some setting I can include in the exported SQL file so that I can upload the data without this problem.

Thanks

UPDATE

Here's what I've been searching for someone else with this problem.

If you have already set up your tables running MySQL on Windows, adding lower_case_table_names = 2 to my CNF or INI file will not change the case of your tables, automatically basically the uppercase or mixed case The names were also created using.

Make Table "MyTable" is a new table "mytable" not MyTable "even when lower_case_table_names = 2 is my own.cnf file

Use this method to use this problem

  1. Copy your original table
  2. Add your original Rename
  3. This is the only way that will work, hopefully it will Helps

:

To avoid data transfer problems, the name of the table, your There are two options:

  • Use low_ case_table_names = 1 on all systems The main disadvantage is that when you use Show Tables or show statistics, then you can name them in their original sheets Can not see.
  • Use low_ case_table_names = 0 on the Unix and lower_ case_table_names = 2 on Windows This database and table names The loss of this is that you should ensure that your statement always looks at your database and table names with the letters of the correct letter on Windows. If you move your statements to Unix, where the lettercase is important, then they do not work if the letters are intact incorrectly. Exception: If you are using Inodb tables and you are trying to avoid these data transfer problems, you should set the following character_table_ names to all platforms in 1 so that The names could be changed to lowercase.

    If you want to set the following_ case_table_names system variable on Unix to 1, you must first change your old database before stopping mysqld on lowercase table name and restart it with new variable setting .


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -