View Single Post
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 03-16-2020 , 10:54   Re: Hlstatsx enable utf8mb4 encoding
Reply With Quote #10

Quote:
Originally Posted by andrepires68 View Post
Still regarding this encoding, I've been getting this error when I click on a player on the hlstatsx page and then click Terms and actions:


Last SQL Query:

SELECT
IFNULL(hlstats_Roles.name, hlstats_Events_ChangeRole.role) AS name,
IFNULL(hlstats_Roles.code, hlstats_Events_ChangeRole.role) AS code,
COUNT(hlstats_Events_ChangeRole.id) AS rolecount,
ROUND(COUNT(hlstats_Events_ChangeRole.id) / IF(0 = 0, 1, 0) * 100, 2) AS percent,
hlstats_Frags_as_res.killsTotal,
hlstats_Frags_as_res.deathsTotal,
ROUND(hlstats_Frags_as_res.killsTotal / IF(hlstats_Frags_as_res.deathsTotal = 0, 1, hlstats_Frags_as_res.deathsTotal), 2) AS kpd
FROM
hlstats_Events_ChangeRole
LEFT JOIN
hlstats_Roles
ON
hlstats_Events_ChangeRole.role = hlstats_Roles.code
LEFT JOIN
hlstats_Frags_as_res
ON
hlstats_Frags_as_res.role = hlstats_Events_ChangeRole.role
WHERE
hlstats_Events_ChangeRole.playerId = 5
AND
(
hidden <> '1'
OR hidden IS NULL
)
AND hlstats_Roles.game = 'css'
GROUP BY
hlstats_Events_ChangeRole.role
ORDER BY
rolecount desc,
name desc
Illegal mix of collations - utf8mb4_0900_ai_ci, so some tables/columns have different collation then others ...

https://www.monolune.com/what-is-the..._ci-collation/
https://dev.mysql.com/doc/relnotes/m...ews-8-0-1.html
and search Google, this is not a problem with HLStatsX but with your MySQL 8.x probably.
__________________
NomisCZ is offline