THE ORB
Starting the studio

Table '<db>.<table>' doesn't exist

The database is missing a whole table a script needs. Its setup file was never imported, or was imported into a different database.

groupsThat script does nothingpersonYou can fix this

Do this first

Import the .sql file that came with the script, into the same database your server.cfg points at.

bug_reportPaste your whole console instead

What it means

The connection worked and the table named in the query is not in that database. Either the SQL that ships with the resource was never imported, or you are connected to a different database than you think.

What causes it

Ordered by how often it is the answer.

  1. 1

    The resource's .sql was never imported

    Every script that stores data ships one. Skipping it is the usual cause.

  2. 2

    Imported into the wrong database

    Two databases on the same server, the import went to one and the connection string points at the other.

  3. 3

    The framework's own schema is missing

    users or players missing means the framework SQL was never run, and nothing will work until it is.

  4. 4

    Case sensitivity

    On Linux MySQL, Users and users are different tables depending on lower_case_table_names.

  5. 5

    "Unknown database" rather than a missing table

    The database itself does not exist — the connection string names one that was never created.

How to tell which one is yours

SELECT DATABASE();
SHOW TABLES;

If the tables are there but DATABASE() is not what you expected, the connection string is wrong. If the list is empty, nothing was ever imported.

Where to look

The .sql file that shipped with the resource, and the database name in server.cfg.

How to fix it

CREATE DATABASE IF NOT EXISTS fivem CHARACTER SET utf8mb4;
USE fivem;
SOURCE /path/to/resource/install.sql;

Still stuck on your own code?

This page is what this error usually means. Paste your console into Server Fixer and it will rank everything in it and tell you what to do first, and if you would rather not touch it, ORBIE can repair the script and hand the resource back ready to drop in.

bug_reportOpen Server Fixer

Errors that travel with this one