Home > Backend Development > PHP Tutorial > Mysql query under Linux, library name and table name are not case sensitive

Mysql query under Linux, library name and table name are not case sensitive

WBOY
Release: 2016-08-18 09:16:11
Original
1003 people have browsed it

Please tell me, for mysql query under Linux, the library name and table name are not case-sensitive. How to set it?

Reply content:

Please tell me, for mysql query under Linux, the library name and table name are not case-sensitive. How to set it?

After logging in with the root account, add lower_case_table_names=1 after [mysqld] in /etc/my.cnf, restart the MYSQL service, and the setting is successful: the table name is case-insensitive;
Detailed explanation of the lower_case_table_names parameter:
lower_case_table_names=0
where 0: case sensitive, 1: not case sensitive

Try this

Mysql query under Linux, library name and table name are not case sensitive

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template