Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.
Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.
To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.
do you host the server locally (e.g. on the host that you also host your fivem server) or is the database somewhere else? if you host it locally, are you sure the service for the database is running? depending on your os i would check the processes + the port they are listening to (in ubuntu you can do it by issuing netstat -tulp and check if there is a process for the database and if its listening on the right port). Otherwise i would check your server.cfg as you need a connection string:
set mysql_connection_string "mysql://<user>:<password>@<host>/<database_name>?charset=utf8mb4"
make sure that the user you are accessing the database has all privileges (at least to the right database)