您的位置:首页 > 数据库 > MySQL

MySQL的表名的大小写敏感问题

2016-05-01 18:03 573 查看
这几个链接说的很好:

MySQL大小写敏感问题和命名规范

http://blog.csdn.net/bluishglc/article/details/7634969

YuBinfeng的技术博客

http://www.cnblogs.com/yubinfeng/p/4480738.html

我感觉,去官网找一手资料稍微好一些,下面的是MySQL官网的5.7版本的文档

MySQL 5.7 Reference Manual  /  MySQL Server Administration  /  The MySQL Server  /  Server System Variables
http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html

The MySQL server maintains many system variables that indicate how it is configured. 

MySQL服务器维护了很多系统变量,这些系统变量指出了MySQL服务器是怎么被配置的。

Each system variable has a default value. System variables can be set at server startup using options on the command line or in an option file. 

每个系统变量都有一个默认值。系统变量可以在服务器启动的时候被设置。可以通过在命令行里使用选项,或者在一个选项文件中设置某个选项的值。

Most of them can be changed dynamically while the server is running by means of the SET statement, which enables you to modify operation of the server without having to stop and restart it. 

在服务运行的过程中,大多数系统变量都可以通过SET语句动态的被改变,这允许你在不关闭和重启它的情况下,修改服务器的运转。

You can refer to system variable values in expressions.

你可以在表达式里参考系统变量的值。

总之吧,MySQL里面有两个系统变量,lower_case_file_system和lower_case_table_names,可以通过【show variables like "lower%";】命令查看它们的现在系统中的值,

lower_case_file_system和操作系统相关,无法修改。

lower_case_table_names可以被修改,但是无法被动态修改,只能关闭服务,修改,重新启动,修改成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: