Reading Time: 2 minutes, 2 secs

Teamspeak 3 with MySQL on CentOS 6.x (before

NOTE: As of Version this tutorial is no longer applicable. I will soon re-write this to accommodate the latest version.

By default Teamspeak 3 uses a SQLite database, most people tend to use this however for those of us that prefer MySQL there is a way to change it.

Follow this small tutorial to create a Teamspeak 3 Server on CentOS 6.x using a MySQL Database!
First we need to have mysql installed:

To use a MySQL database, you need to install additional libraries not available from the default repositories. Download MySQL-shared-compat-6.0.11-0.rhel5.x86_64.rpm (This is 64 bit version. If you are on a 32 bit system, you’ll need to find it somewhere) and install

Now we need to create a new user on our server, this will be used for the installation and running of teamspeak. For security reasons this user will not have sudo etc.

We are now in a position where we can configure MySQL with a Database and User for Teamspeak

Once the MySQL Database is setup along with a user we will create an init script for Teamspeak so that we can start the server as a service, create the script: vi /etc/init.d/teamspeak

Now we will login with our new ts3user created at the beginning of this tutorial, download Teamspeak Server 3 64-bit for Linux and extract in your home directory, get the latest version here:

ts3server.ini stores the configuration for the teamspeak server, we need to edit this to work with MySQL instead of SQLite: vi ts3server.ini

We must now create a file called ts3db_mysql.ini, this will hold your database login details:

Start Teamspeak with a few additional paramaters, one tells it where the configuration file is and the other tells it to change the serveradmin password:

You should now see that teamspeak 3 is installed and you will see a message on screen with a privelage token and your server query admin account details, it is important to copy these as you will need them to administer your server.

Stop the server:

Check the logs in the log directory. if everything is OK, log back in as root, enable the service and start it:






  1. Thanks for the nice TS3 guide, helped a linux noob like me to get an TS3 server working 🙂

  2. idx

    I Followed steps exactly like in your video, till i got to where i should load libraries using this command ” ldd ”
    When i execute this command i get this msg ” ldd: ./ No such file or directory ”
    i double check all steps, and im pretty sure i’ve done everything correct..
    so why am i getting this message ?

    • Hi IDX,

      Please make sure the file is here /usr/lib/

      I should have included this in my article. If you don’t have the file download the correct one here and unzip to the /usr/lib/ directory:

      Any issues let me know

  3. idx

    Hi Steve, Thanks for you fast reply,
    i couldnt find in /usr/lib/, However i did find it (along with other files with same name, different versions) on here/usr/lib64/ – check this img “”
    i think im not missing that file since i run a CentOS 6 -x64 on my VPS
    i also downloaded the file u mentioned and put it in /usr/lib/….Sadly still having the same error.
    P.S: im pretty much a beginner with Linux and TS
    and btw im the one commented on ur video on YT so u might wana ignore that.

  4. idx

    I’ve the whole process log here if you want to check them aswell..
    hope this helps.

    • I have looked at the logs, could you do an ls -la within the teamspeak3-server directory I just want to check permissions and files are all correct. also ls -la /usr/lib/

      From the logs it looks correct what you have done, Once you have sent me the above would it be possible to get SSH SUDO access to the server? If so I will email directly to get the details, this will allow me to find the issue quicker for you.

  5. idx

    Sorry, forgot the usr/lib64
    here u go all 3 again

    • Ok i have found the issue, Since this article was released teamspeak have changed the way it works with MySQL. I will need to re-write this article to accommodate this.

  6. idx

    Oh Great, then…I’ll just have to wait till you write the new one…Hope u do soon
    Thanks very much for your Help.

    • I am currently working on the upgraded version. Essentially you change the ldd to ldd

      Also change the .ini files so that wherever it says MySQL it now says mariadb however I will hopefully be testing this tomorrow so can confirm then.

  7. idx

    I think i should wait till you are done with you’re done testing..My Linux Knowledge is still basic.

Leave a Comment.