Prepare the database on your server
This walkthrough assumes a Linux VPS running MariaDB and SSH on the same machine. You need an SSH login and a separate database login. Keep MariaDB listening on server loopback; public port 3306 can stay closed.
Ask your database administrator to create a password account for TCP loopback access. For MariaDB, run the following in an administrator SQL console. Replace the password placeholder locally with a unique password, and replace FiveM if your database has another name.
CREATE USER 'astral_client'@'127.0.0.1'
IDENTIFIED BY 'REPLACE_WITH_A_UNIQUE_PASSWORD';
GRANT SELECT ON `FiveM`.*
TO 'astral_client'@'127.0.0.1';This starts with read access. Request only the write or schema privileges you need. Do not reuse phpMyAdmin’s internal service account. Verify the new login over TCP on the server; a UNIX-socket login alone does not verify this route.
mariadb --protocol=TCP --host=127.0.0.1 --port=3306 --user=astral_client --password FiveMIf access is denied, have the administrator check the account host and authentication method. MySQL account matching may differ. See MariaDB accounts and database privileges.