登录
  • 人们都希望被别人需要 却往往事与愿违
  • 世上最难的两件事: 把自己的思想装进别人的脑袋, 把别人的钞票装进自己的口袋 -- 共产党都做到了!

piwigo mysql error 3065解决方案

Linux Benny小土豆 7715次浏览 500字 0个评论
这篇文章在 2017年07月11日16:53:34 更新了哦~

piwigo做的图床,在升级了MySQL(版本号5.7.13)之后,某一天突然发现点进去相册就提示MySQL error 3065,具体报错如下:

Warning: [mysql error 3065] Expression #1 of ORDER BY clause is not in SELECT list, references column 'pic.piwigo_images.date_available' which is not in SELECT list; this is incompatible with DISTINCT

SELECT DISTINCT(image_id)

FROM piwigo_image_category

INNER JOIN piwigo_images ON id = image_id

WHERE

category_id = 5

piwigo mysql error 3065解决方案

去Google搜索一番找到了这么个链接https://github.com/Piwigo/Piwigo/issues/376

找到了解决方案,修改配置文件

vim /etc/my.cnf

在mysqld字段下增加如下一行

sql-mode=""

重启MySQL即可

systemctl restart mysql.service

文章版权归原作者所有丨本站默认采用CC-BY-NC-SA 4.0协议进行授权|
转载必须包含本声明,并以超链接形式注明原作者和本文原始地址:
https://dmesg.app/mysql-3065.html
喜欢 (4)
分享:-)
关于作者:
If you have any further questions, feel free to contact me in English or Chinese.
发表我的评论(代码和日志请使用Pastebin或Gist)
取消评论

                     

去你妹的实名制!

  • 昵称 (必填)
  • 邮箱 (必填,不要邮件提醒可以随便写)
  • 网址 (选填)