---
title: TShock Configuration Files
description: Learn how to configure and manage your TSHock Terraria server, and setup MySQL for data storage.
source: "https://nodecraft.com/support/games/terraria/tshock-configuration-files"
image: "https://dynamic-assets.nodecraft.com/signedurl/w7vokBAexMnVlnMZ1Q/image.jpg?modifications=W3sibmFtZSI6ImdhbWVfYmciLCJpbWFnZV91cmwiOiJodHRwczovL2Ntcy1hLm5vZGVjcmFmdC5jb20vZi8xMzM5MzIvMjAwMHg1NTAvOGIwZjdhNWNjMC90ZXJyYXJpYS1sYW5kaW5nLXBhZ2UtMS0yLTAucG5nL20vIn0seyJuYW1lIjoiZ2FtZV9sb2dvIiwiaW1hZ2VfdXJsIjoiaHR0cHM6Ly9jbXMtYS5ub2RlY3JhZnQuY29tL2YvMTMzOTMyLzM3NXgxNTAvOGM1NTVhZWQwZi9sb2dvLnBuZy9tLyJ9LHsibmFtZSI6ImN0YV90ZXh0IiwidGV4dCI6IkNyZWF0ZSB5b3VyIG93biBzZXJ2ZXIhIn0seyJuYW1lIjoidGV4dCIsInRleHQiOiJUU2hvY2sgQ29uZmlndXJhdGlvbiBGaWxlcyJ9XQ&s=20907a50a653015c1c79f65526defc3a6c317782a383bccef6ee489d251f720b"
published: "2019-03-25T21:50:52.526Z"
updated: "2024-09-23T22:09:00.000Z"
---

# TShock Configuration Files

Learn how to configure and manage your TSHock Terraria server, and setup MySQL for data storage.

After installing TShock onto your Terraria server, our installer automatically moves the config files for TShock to the "config" folder.

Inside the `config` folder, you will find all the configuration files for TShock:

- `config.json` - The main config for TShock, which replaces the "config.txt" file usually used by vanilla Terraria
- `tshock.sqlite` - The default database file used by TShock for storage of information, unless you choose to configure TShock to use a different storage system (See below).
- `sssconfig` - The config file for server-side characters plugin

## Configure TShock to Use a MySQL Database

All Terraria servers hosted at Nodecraft include a MySQL database entirely free of charge. This database is run on a separate device from your server and uses no resources from your Terraria server.

If you wish to use the MySQL database instead of the SQLite database, please do the following:

- Go to the Nodecraft Pro panel, click on the Databases tab, and then click the large bright green button Create Database.

![A view of Nodecraft Pro's Database tab, creating a MySQL database](https://cms-a.nodecraft.com/f/133932/1915x669/29ee527e22/create-database.png/m/1000x0/smart)

- Go to Server Files on the Nodecraft Pro panel, then navigate to the "config" folder, select `config.json`, and click the "Edit" button
- Edit the `config.json` file, and change the `StorageType` setting in `config.json` to `mysql` (all lowercase). Enter the login credentials shown on the Database tab of the panel on the following 4 lines of `config.json`.

![A view of TShock's config.json file, with the Storage section show, within Nodecraft Pro](https://cms-a.nodecraft.com/f/133932/371x185/ac04202383/tshock-storage-config.png/m/)
