3
Locally I have Mysql 5.6 installed, and this SELECT works smoothly:
SELECT dia FROM indicacao
GROUP BY YEAR(dia), MONTH(dia)
ORDER BY dia DESC
Already on the client server, with Mysql 5.7 this same SELECT does not work. I realize that the problem is in GROUP BY, because if I withdraw, it works. If I do a SELECT without PDO it simply returns nothing... if I do this same SELECT with PDO error 500 on the server.
The database content is the same (locally and on the client server). Has anyone experienced this? Do you know if it might be some kind of server configuration? Is there anything you can use to test or see an error log?
Thank you! Where do I put this?
– caiocafardo
I’ll edit in the reply showing where it is with prints
– Luiz Fernando