MySQL表名 区分大小写
2015-11-24 11:00
597 查看
官方文档说的很清楚 嘿嘿
lower_case_table_names
Command-Line Format --lower_case_table_names[=#] System Variable Name lower_case_table_names Variable Scope Global Dynamic Variable No Permitted Values Type integer Default 0 Min Value 0 Max Value 2 If set to 0, table names are stored as specified and comparisons are case sensitive. If set to 1, table names are stored in lowercase on disk and comparisons are not case sensitive. If set to 2, table names are stored as given but compared in lowercase. This option also applies to database names and table aliases. For additional information, see Section 9.2.2, “Identifier Case Sensitivity”. You should not set this variable to 0 if you are running MySQL on a system that has case-insensitive file names (such as Windows or OS X). If you set this variable to 0 on such a system and access MyISAM tablenames using different lettercases, index corruption may result. On Windows the default value is 1. On OS X, the default value is 2. If you are using InnoDB tables, you should set this variable to 1 on all platforms to force names to be converted to lowercase. The setting of this variable has no effect on replication filtering options. This is a known issue which is fixed in MySQL 5.6. See Section 17.2.3, “How Servers Evaluate Replication Filtering Rules”, for more information. You should not use different settings for lower_case_table_names on replication masters and slaves. In particular, you should not do this when the slave uses a case-sensitive file system, as this can cause replication to fail. This is a known issue which is fixed in MySQL 5.6. For more information, see Section 17.4.1.36, “Replication and Variables”.
相关文章推荐
- MySQL查看表占用空间大小(转)
- windows 7下mysql主从同步设置
- MYSQL GDB 崩溃调试
- mysql日期和字符转换
- mysql多个TimeStamp设置
- OOW 2015 MYSQL
- MySQL审计日志处理脚本
- DTCC:MySQl核心代码开发经验揭示
- 东东糖博客MYSQL
- MySQL中二进制与重做日志文件的基本概念学习教程
- mysql中DATETIME,DATE和TIMESTAMP的区别整理
- mysql 同时执行多条update语句
- MySQL DBA教程:Mysql性能优化之缓存参数优化
- mysql 语句
- Mysql技术内幕(第四版)读书笔记(一)
- MySQL-----备份还原
- mysql存储过程汇总
- MySQL存储过程 事务transaction
- MySQL存储过程 游标循环的使用
- MySQL存储过程 创建