Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1611

General Questions/New to Joomla! 3.x • Issue with SQL syntax on MySQL 8.0.36

$
0
0
Hi everyone,
I've migrated a few sites to another host, for one of the sites and only for the blog section (blog by EasyBlog) I'm getting an SQL error that I don't get if the site is installed locally or if it's installed at the previous host.

The problem comes from the server database version.

Previous host: MariaDB 10.2.44 -> no problem
Local: MySQL 5.7.39 -> no problem
New host: MySQL 8.0.36 -> problem.

Here's the error I get:

Code:

"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC ORDER BY a.`created` DESC' at line 1"
After some research on the web it seems that a query uses an alias (a.created) in the ORDER BY clause, which is incompatible with MySQL 8.0.36.
I've tried some SQL rules in phpMyAdmin on a development site but basically I don't know which table to target because EasyBlog has a lot of them and honestly I don't even know if my SQL rule is correct...

Can anyone tell me how to fix this?

Many thanks,
Lorenzo

Joomla 3.10.12
PHP 7.4.33

Statistics: Posted by iorbita — Tue Mar 12, 2024 9:01 am



Viewing all articles
Browse latest Browse all 1611

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>