Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署PHP出现的问题 #143

Open
dotimes opened this issue Nov 15, 2015 · 5 comments
Open

部署PHP出现的问题 #143

dotimes opened this issue Nov 15, 2015 · 5 comments

Comments

@dotimes
Copy link

dotimes commented Nov 15, 2015

qq20151115-0 2x
折腾了一段时间 也没解决 求帮助 谢谢

@bixuehujin
Copy link

这应该是 MySQL 版本的问题,新版本(不是5.6就是5.7)默认开启了 NO_ZERO_DATE 的 sql mode
http://stackoverflow.com/questions/9192027/invalid-default-value-for-create-date-timestamp-field

@dotimes
Copy link
Author

dotimes commented Nov 18, 2015

谢谢,昨天这个问题也通过查资料解决了,但是homestead环境中,npm install
这步出了 好多问题,不太懂环境配置,求大神帮忙呀
npm-debug.txt

@0xuhe
Copy link

0xuhe commented Jan 11, 2016

database.php里面添加'strict'=>true

'mysql' => array(
            'driver' => 'mysql',
            'host' => getenv('DB_HOST') ?: 'localhost',
            'database' => getenv('DB_NAME') ?: 'phphub',
            'username' => getenv('DB_USERNAME') ?: 'root',
            'password' => getenv('DB_PASSWORD') ?: '',
            'charset' => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix' => '',
            'strict' => true,

        ),

@dotimes
Copy link
Author

dotimes commented Jan 12, 2016

@gfd6th thank you

@BarryGibb
Copy link

@676496871 我也是在npm install的时候出现很多错误,不明所以。。

npm-debug.txt

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

No branches or pull requests

4 participants