1. 程式人生 > >mysql 不區分大小寫

mysql 不區分大小寫

小寫 ron mysql mes dir mysqld bsp strong val

show variables like ‘%case%‘

+------------------------+-------+
| Variable_name | Value |
+------------------------+-------+
| lower_case_file_system | OFF |
| lower_case_table_names | 1 | 表示已經是支持忽略大小寫了
+------------------------+-------+

修改 /etc/mysql/my.cnf

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
[mysqld]


lower_case_table_names=1

mysql 不區分大小寫