Home >Database >Mysql Tutorial >linux上的mysql报Table 'xxx' doesn't exist的错误解决方法_MySQL

linux上的mysql报Table 'xxx' doesn't exist的错误解决方法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:36:581151browse

bitsCN.com


linux上的mysql报Table 'xxx' doesn't exist的错误解决方法

 

问题:程序报Table 'xxx' doesn't exist 的错误,但是查看数据库

发现该表已经存在且字母也没有拼错。

原因:linux 上的mysql 默认是区分大小写导致的。

 

解决:改动mysql的配置文件,在my.cnf中的[mysqld]下面

(位置不能错)加上lower_case_table_name=1这句(1表示不区

分大小写,0区分大小写),保存重新启动mysql。

 

bitsCN.com
Statement:
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