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

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

WBOY
Release: 2016-06-01 13:04:34
Original
1234 people have browsed it

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。
没有my.cnf文件,如果是默认安装执行以下列操作
[root@hqw mysql]# cp /usr/share/mysql/my-huge.cnf /etc/my.cnf
再my.cnf加入配置信息

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