Forum

Results 1 to 3 of 3
  1. #1
    Join Date
    September 2013
    Posts
    4

    Exclamation Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

    Hello.

    I just moved my entire teamspeak 3 server to my linux box from my windows one, and now I've faced a problem.

    I run Ubuntu Server 12.04 LTS 32-bit.

    The error I get when I try to start the server is this:
    Code:
    Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
    Now, I've browsed around these forums for a few hours now and it seems like the libmysqlclient.so.15 doesn't work with MySQL Server versions higher than 5.0.X where my version is 5.5.31. Are there any workarounds for this or do I have to go through the long procedure of downgrading my MySQL version? It's weird though, since it worked on the windows box but not the linux one.

    Here's some information:
    ldd of libts3db_mysql.so
    Code:
    ldd libts3db_mysql.so                                      
            linux-gate.so.1 =>  (0xb7756000)
            libmysqlclient.so.15 => /usr/lib/libmysqlclient.so.15 (0xb752e000)
            libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7502000)
            libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb74e3000)
            libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb733a000)
            /lib/ld-linux.so.2 (0xb7757000)
            libcrypt.so.1 => /lib/i386-linux-gnu/libcrypt.so.1 (0xb7309000)
            libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0xb72ef000)
            libnss_files.so.2 => /lib/i386-linux-gnu/libnss_files.so.2 (0xb72e2000)
            libnss_dns.so.2 => /lib/i386-linux-gnu/libnss_dns.so.2 (0xb72da000)
            libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0xb72c2000)
    Contents of ts3server.ini
    Code:
    machine_id=
    default_voice_port=9987
    voice_ip=0.0.0.0
    licensepath=
    filetransfer_port=30033
    filetransfer_ip=0.0.0.0
    query_port=10011
    query_ip=0.0.0.0
    dbplugin=ts3db_mysql
    dbpluginparameter=
    dbsqlpath=sql/
    dbsqlcreatepath=create_mysql/
    logpath=logs
    logquerycommands=0
    Contents of ts3server_mysql.ini
    Code:
    [config]
    host='localhost'
    port='3306'
    username='teamspeak'
    password='XXXXXXX'
    database='teamspeak'
    socket=
    Any clues?

    Thanks in advance, regards, Sven.

  2. #2
    Join Date
    September 2013
    Posts
    4
    Okay, I managed to fix it by running these commands:

    Code:
    wget http://archive.debian.org/debian/pool/main/m/mysql-dfsg-5.0/libmysqlclient15off_5.0.51a-24+lenny5_i386.deb
    sudo dkpg -i libmysqlclient15off_5.0.51a-24+lenny5_i386.deb

  3. #3
    Join Date
    July 2006
    Posts
    1,600
    Did you check
    1. If a mysql server is running?
    2. If a socket called mysql.sock is present at the location you posted?
    Last edited by maxi1990; September 13th, 2013 at 12:10 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: November 19th, 2012, 03:13 PM
  2. MySQL Socket Problem
    By Mactabilis in forum Linux / FreeBSD
    Replies: 9
    Last Post: May 15th, 2012, 06:17 PM
  3. [Solved] Hook up TS3 to my local mysql server
    By Jorbazz in forum Linux / FreeBSD
    Replies: 2
    Last Post: May 10th, 2010, 02:11 PM
  4. `server mysql database cant connect fail
    By UselessWolf in forum Linux / FreeBSD
    Replies: 39
    Last Post: February 19th, 2010, 10:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •