Home >Database >Mysql Tutorial >mysql常见错误集锦

mysql常见错误集锦

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 18:00:34889browse

由于最近一直接触php+mysql,会遇到一些问题,所以把这些问题整理下

#1067 - Invalid default value for 'xxx'

当修改表中某字段的时候,出现了这个错误。显示:字段名称已存在错误。
只好删除该字段,重新添加

UTF-8导入MYSQL中文无显示
今天把本地的MYSQL数据导出到web service,结果发现中文字符全不见了。配置如下:

程序代码
导出数据库5.0.45。字符集:UTF-8
导入数据库数据库5.0.22,也是UTF-8

结果发现是phpadmin版本不兼容,以至于导出数据出现问题,使用mysqldump指令进行导出。

程序代码
mysqldump -uroot -p123456 thfxw>d:\ym.sql

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