问题
I'm attempting to migrate a database from a windows to a linux host.
Thanks!
Ashley
回答1:
You are not finding the the table names under linux mysql, coz its default is case-sensitive. And for windows its case-insensitive.
I can't guess if ignoring case sensitivity works for you. But you can do by adding a line in my.conf. i.e. making mysql in linux to be case insensitive.
mysqlserver:~# vi /etc/mysql/my.cnf
...
[mysqld]
lower_case_table_names = 1
回答2:
Check out the following links and see if that helps:
http://bugs.mysql.com/bug.php?id=33898
http://dev.mysql.com/doc/refman/5.1/en/identifier-case-sensitivity.html
回答3:
Bug 33898 suggests setting lower_case_table_names=2
.
来源:https://stackoverflow.com/questions/999643/how-can-i-get-mysqldump-to-preserve-the-case-of-table-names