How can I get mysqldump to preserve the case of table names?

和自甴很熟 提交于 2019-12-21 16:02:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!