Can't connect to MySQL


Hi guys,

I’m trying to start essential connected to my database but everytime I start the
server I get an error like that :

2017-05-02 20:33:32.3131|INFO|CitizenMP.Server|Starting resource essentialmode (last state: Stopped).
2017-05-02 20:33:47.4582|ERROR|CitizenMP.Server|Error creating script environment for resource essentialmode: Unable to connect to any of the specified MySQL hosts.
2017-05-02 20:33:47.4613|ERROR|CitizenMP.Server| at [U] MySql.Data.MySqlClient.NativeDriver.Open()
2017-05-02 20:33:47.4613|ERROR|CitizenMP.Server| at [U] MySql.Data.MySqlClient.Driver.Open()
2017-05-02 20:33:47.4613|ERROR|CitizenMP.Server| at [U] MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)

1 - Yes I have change the file in resources/essential/server/player/login.lua
2 - Yes my database is online
3 - I can connect from another client

This seems to be a connexion problem but I’m not really good at it so if you guys got any ideas it would be great !

Thanks :slight_smile: