Use Mysql lower_case_table_names to 1

匆匆过客 提交于 2019-12-03 17:02:52

问题


I have installed mysql v5.5.17 in linux using yum, now i want default lowercase table names so i have added

set-variable = lower_case_table_names=1

in /etc/my.cnf

but if i do that then i could not start mysqld service. Mysql logs says unknown variable lower_case_table_names. I have also tried with set global lower_case_table_names=1; in command line but is says its read only variable.

any suggestion?


回答1:


my OP system is ubuntu, Mysql version is 5.5.*

update file /etc/mysql/my.cnf, (must add under the section [mysqld])

[mysqld]

lower_case_table_names=1

then restart mysql




回答2:


In 5.5 we need to specify

lower_case_table_names=1


来源:https://stackoverflow.com/questions/8147447/use-mysql-lower-case-table-names-to-1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!