mysql - 如何在Linux环境中禁用区分大小写

标签 mysql ubuntu database-schema

我正在 Ubuntu 机器上使用在 Windows 机器上创建的 MySQL 架构。但是当我的应用程序尝试访问数据库时,我得到了

Table 'schema.Booking' doesn't exist

如何禁用此功能以使存储过程不区分大小写?

最佳答案

Use lower_case_table_names=0 on Unix and lower_case_table_names=2 on Windows. This preserves the lettercase of database and table names. The disadvantage of this is that you must ensure that your statements always refer to your database and table names with the correct lettercase on Windows. If you transfer your statements to Unix, where lettercase is significant, they do not work if the lettercase is incorrect.

参见:http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html

关于mysql - 如何在Linux环境中禁用区分大小写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20933120/

相关文章:

python - bool 标志字段的模式设计(数据库架构)

含有非法字符的 MySQL 数据库名称

mysql - 如何为 ExcelforMySQL 添加到 Ionos Database 的远程连接?

mysql - 使用 MySQL 查找准确的字符数量

mysql - 负载平衡设置和同步

entity-framework-6 - 具有基于组的角色的 ASP.NET 身份自定义

mysql - 对不同条件下的相同值求和

java - 编译 MySQL Connector Jar 文件时 Android Studio preDexDebug 错误

ubuntu - 如何从终端在 ubuntu 上启动 IntelliJ

ubuntu - 我无法在 WSL2 开启的 Windows 10 上使用 npm 命令(ubuntu 终端)