#[ESX] OxMySql

1 messages · Page 1 of 1 (latest)

wet chasm
#

What i can do?

halcyon ether
#

!database

wild swiftBOT
#

:point_right: If you are having ECONNREFUSED 127.0.0.1:3306 when connecting to the database, this probably means you do not have a database installed or running.
windows Windows Home Hosted or VPS:
:one: Download and install XAMPP: https://www.apachefriends.org/
:two: Start MySQL: https://i.imgur.com/UNnKmnt.png
:three: On txAdmin, click on the Cancel button and try again.
linux Linux VPS or Self Hosted:
It depends on your distro (like CentOS, Ubuntu, etc), you will need to google how to install MariaDB in it.
pterodactyl Pterodactyl setups (most hosting providers):
Open a support ticket at your hosting provider to ask their help in setting up the database.
If your pterodactyl is self hosted (you own the instance), this video MAY be the solution.

wet chasm
tiny flame
#

Have you had it working previously and now it has stopped working with this error, or are you still setting up your server for the first time?

On the face of it, I'd say your MySQL settings in the server.cfg are incorrect, your host should be able to provide your database server, username, and password, then you can create a connection string in the config that looks like this:

set mysql_connection_string "mysql://[user]:[password]@[server]:3306/[dbname]"