Skip to main content
Some scripts ship .sql files, for example sql/items_esx.sql in aps_cityhall. Run them on the same database your server uses.
Your server’s database is the one named in mysql_connection_string in your server.cfg. Import into that database, not a different one.
  1. Open HeidiSQL and connect to your database server.
  2. Click your server’s database in the left panel.
  3. Click File → Run SQL file… and select the .sql file.
  4. Confirm, and wait until the query finishes.
  5. Press F5 to refresh and check that the new tables or rows are there.
You can also open a new query window, paste the contents of the .sql file and run it. This works in HeidiSQL, phpMyAdmin (SQL tab) and the txAdmin database tab.
Make a backup of your database before you import, especially when a file changes or drops existing tables.
Restart the script (or the server) after the import.