Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm attempting to migrate a database from a windows to a linux host.

Thanks!

Ashley

like image 318
chickeninabiscuit Avatar asked Jun 16 '09 04:06

chickeninabiscuit


Video Answer


2 Answers

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
like image 119
simplyharsh Avatar answered Oct 09 '22 15:10

simplyharsh


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

like image 3
Ram Prasad Avatar answered Oct 09 '22 15:10

Ram Prasad