Database

Missing tables, oxmysql errors and how to import the SQL file

1 min read · Updated Dec 3, 2026

Table doesn't exist

The error looks like Table 'yourdatabase.topx_...' doesn't exist.

The scripts do not create their tables by themselves. Import the SQL file of the script once:

  1. Open your database tool (HeidiSQL, phpMyAdmin or similar) and choose the database of your server.
  2. Import the file from the INSTALL/sql folder of the script, for example topx_garages_system.sql.
  3. Restart the script.

NOTE

Files marked optional, like optional_framework_indexes.sql, are not needed for the script to work.

Unknown column

You updated the script but your tables are from an older version. Import the new SQL file again or run the update file that comes with the script, then restart it.

oxmysql: connection error

The script is fine, the connection to the database is not. Check the mysql_connection_string line in your server.cfg: user, password, host and the name of the database.

cfg
set mysql_connection_string "mysql://user:password@localhost/yourdatabase"

The data does not save

  • Check that oxmysql is started before the TopX scripts.
  • Read the console for a red SQL line right after the action that did not save.
  • Make sure the database user may write to the tables, not only read.