Skip to content
This repository has been archived by the owner on May 22, 2018. It is now read-only.

homestead 下 sql 文件导入失败 #10

Open
gantoday opened this issue Feb 5, 2016 · 2 comments
Open

homestead 下 sql 文件导入失败 #10

gantoday opened this issue Feb 5, 2016 · 2 comments

Comments

@gantoday
Copy link

gantoday commented Feb 5, 2016

在 homestead 里导入 yascmf 的 sql 文件失败。提示:

ERROR 1067 (42000): Invalid default value for 'created_at'
ERROR 1146 (42S02): Table 'yascmf.yascmf_users' doesn't exist

导致导入会少几张表。

mysql Ver 14.14 Distrib 5.7.10, for Linux (x86_64) using EditLine wrapper

@ghost
Copy link

ghost commented Mar 4, 2016

0000-00-00 改为 1971-01-01 ,有可能是你的mysql过高,应该是5.6?

@ycrao
Copy link
Member

ycrao commented Mar 4, 2016

ERROR 1146 (42S02) 表明你 users 表不存在
ERROR 1067 (42000) 不知道是指的那张表里面的 created_at 字段

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants