MySQL case sensitivity table name on MacOS with case insensitive file system

前端 未结 7 1052
梦如初夏
梦如初夏 2021-01-19 11:55

I have researched a lot and what I understand to make database tables name sensitive, you have to set the variable lower_case_table_names=0. Im on osX. I did this change in

7条回答
  •  野性不改
    2021-01-19 12:39

    1. Locate file at /etc/mysql/my.cnf

    2. Edit the file by adding the following lines:

      [mysqld]

      lower_case_table_names=1

    3. sudo /etc/init.d/mysql restart

    You might need to re-create these tables to make it work

提交回复
热议问题