⚠️Common Issues
Ilegal mix of collations

Works for every script with this error
Solution for PhpMyAdmin
Open your PhpMyAdmin Panel
Select Database which u are using for your FiveM Server in Panel on Left Side
Click
Operations
Section on Top of Panel
Scroll to
Collation
Section on Bottom ofOperations
PageSelect
utf8mb4_unicode_ci
from Dropdown List - Make sure to check 2 checkboxes and clickGo

Cannot change column 'citizenid': used in a foreign key constraint 'fk_citizenid' of table 'database_name.player_groups'
Solution for this Error
Go to
player_groups
table - OpenStructure
Page and SelectRelation view

Click
Drop
onfk_citizenid
key and Change Collation again :)

Solution for HeidiSQL
Open your database and find tables from error in your server console - in my example it will be
players
anddoj_citizen_profiles

Go to first table [in my example it will be
players
] and check collation of every column. Collation should be the same in every column and in both tables. If they are different, double click on it and change. Do the same with second table.

Last updated