FiveM Server database problem

[ERROR] [MySQL] An error happens on MySQL for query “SELECT plate, owner FROM owned_vehicles {=}”: Unable to connect to any of the specified MySQL hosts.
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM properties {=}”: Unable to connect to any of the specified MySQL hosts.
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM items {=}”: Unable to connect to any of the specified MySQL hosts.
SCRIPT ERROR: @esx_addoninventory/server/main.lua:13: attempt to get length of a nil value (local ‘items’)

fn (@mysql-async/lib/init.lua:7)
[ERROR] [MySQL] An error happens on MySQL for query “UPDATE owned_vehicles SET state=true WHERE state=false {=}”: Unable to connect to any of the specified MySQL hosts.
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM datastore {=}”: Unable to connect to any of the specified MySQL hosts.
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM addon_account {=}”: Unable to connect to any of the specified MySQL hosts.
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM jobs {=}”: Unable to connect to any of the specified MySQL hosts.
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM items {=}”: Unable to connect to any of the specified MySQL hosts.
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM shops {=}”: Unable to connect to any of the specified MySQL hosts.
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM items {=}”: Unable to connect to any of the specified MySQL hosts.
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM jobs {=}”: Unable to connect to any of the specified MySQL hosts.
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM vehicle_categories {=}”: Unable to connect to any of the specified MySQL hosts.
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM vehicles {=}”: Unable to connect to any of the specified MySQL hosts.

If i starting server this showing in my server console

wrong SQL server details specified, it can’t connect to your sql database thats what its saying, so fix ur config for DB connections.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.