本文介绍了如何获取mysqldump以保留表名的大小写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将数据库从Windows迁移到Linux主机.

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

谢谢!

阿什利

推荐答案

在Linux mysql下找不到表名,因为它的默认值区分大小写.对于Windows,它不区分大小写.

You are not finding the the table names under linux mysql, coz its default is case-sensitive.And for windows its case-insensitive.

我无法判断是否忽略大小写对您有用.但是您可以通过在my.conf中添加一行来完成.即使Linux中的mysql不区分大小写.

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

这篇关于如何获取mysqldump以保留表名的大小写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 12:21
查看更多