简体   繁体   中英

MySql Server 8 change table names to be case sensitive

I am trying to change the way table names are created in MySql Server 8 on Windows. I create a my.cnf file and placed it under bin folder with the following content

lower-case-table-names = 2

I restarted mysql service and still tables are created in lowercase. I have renamed the file to my.ini but no luck.

How can I achieve that?

Exception: InnoDB Table names and View names are stored in lowercase, as for lower_case_table_names=1. Can you check if you are using innoDB

Refer the table in https://dev.mysql.com/doc/refman/8.0/en/identifier-case-sensitivity.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM