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

mysql5.7情况下,打开首页,mysql报错 #9

Open
awanganddong opened this issue Feb 14, 2019 · 3 comments
Open

mysql5.7情况下,打开首页,mysql报错 #9

awanganddong opened this issue Feb 14, 2019 · 3 comments

Comments

@awanganddong
Copy link

image

猜测上边问题是由于mysql5.7的sql_mode问题引起的,
一种方法大概是设置sql_mode为only_full_group_by模式。
另外一种方法大概是修改symfony的配置文件,现在正在考虑怎么研究代码内配置。

@awanganddong
Copy link
Author

image
这是google出来的答案

@jjsty1e
Copy link
Member

jjsty1e commented Feb 15, 2019

也可以直接修改mysql.ini配置文件把ONLY_FULL_GROUP_BY删除吧,可能是这个配置导致了doctine生成的msyql语句无法执行

@awanganddong
Copy link
Author

上边解决之后,出现下列问题
image
请教@Jaggle之后,是没有用
php bin/console assetic:dump --env=prod //创建静态资源
这里要注意下--env=prod/dev 生产与测试模式两种模式

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

2 participants