How can I get mysqldump to preserve the case of table names?
-
14-09-2019 - |
Question
I'm attempting to migrate a database from a windows to a linux host.
Thanks!
Ashley
Solution
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
OTHER TIPS
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
Bug 33898 suggests setting lower_case_table_names=2
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow