2019.01.20-bug记录

1.mysql重启:mysql quit;#退出

mysql -uroot;#重新进入

2.bug:mysql5.7版本:sql_mode=only_full_group_by问题

[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

debug:git中 进入mysql命令行

去掉ONLY_FULL_GROUP_BY,重新设置值。

set @@global.sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'

3.bug:角色与角色组关系表新建表运行出错

can not add foreign key constraint(约束限制)

debug:需将userid和id 的字段类型以及字段设置改为完全一致的

foreign key('roleid')references 't_mis_role'('id')

debug:'roleid' int(11) not null comment '角色id',改为

'roleid' int(11) unsigned not null comment '角色id'。

因为:t_mis_role中id为

'id' int(11) unsigned not null  auto_increment.

4.bug:1 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that 2 corresponds to your MySQL server version for the right syntax to use near')engin=InnoDB default character set=utf8 COMMENT '用户和部门关系表'at line 5

debug:将创建的表的最后一个字段后的逗号‘,’去掉

5.bug:y2aa-frontend.test/重定向到nigx

debug:yii-application/vagrant/ngix/app.conf路径

server重新配置

1》copy  server{}

2>修改

server_name y2aa-frontend.test;

root    /app/frontend/web/;

index  index.php;

access_log    /app/vagrant/nginx/log/frontend-access.log;

error_log    /app/vagrant/nginx/log/frontend-error.log;

6.host文件位置:C:\Windows\System32\drivers\etc\hosts

7.

猜你喜欢

转载自blog.csdn.net/tangerine_/article/details/86566098