#1055
来源:互联网 发布:api接口java怎么使用 编辑:程序博客网 时间:2024/06/06 04:11
mysql报错
#1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this is incompatible with sql_mode=only_full_group_by
解决办法:1
steps to success:
sudo vim /etc/mysql/conf.d/mysql.cnf
Scroll to the bottom of file Copy and paste
[mysqld]sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
to the bottom of the file
- save and exit input mode
sudo service mysql restart
to restart MySQL.
Done!
2
mysql -u root -pmysql > SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
You might need sudo for the first step:
sudo mysql -u root -p
这是stackoverflow上的回答,解决了我的问题,顺便说一句,中国的社区真垃圾,回答的解决办法都是屁话
阅读全文
0 0
- 1055
- #1055
- #1055
- uva 1055
- WOJ 1055
- Pat 1055
- BZOJ 1055
- bzoj 1055
- 1055 集体照
- xdoj-1055
- bzoj 1055
- PAT 1055
- HDU 1055
- [Err] 1055
- 1055 气球
- mysql 1055
- [Err] 1055
- [Err] 1055
- 利用MS12-020进行的一次简单渗透测试
- 数据库高可用场景下,VIP(虚拟IP)的作用
- 虚函数、纯虚函数与虚继承
- Java中的简单工厂设计模式
- RUP、XP、敏捷过程
- #1055
- 初识数字图像处理
- 大四课程设计之基于RFID技术的考勤管理系统(二)读取COM口数据
- GitHub 新手详细教程
- 人生的第一个程序呀~
- BZOJ3504: [Cqoi2014]危桥
- 高并发限流
- ionic升级遇到的错误:webpackJsonp is not defined
- 四、Ubuntu PCL、OpenCV 安装以及简单使用