1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Why does XenForo not support MySQL sockets?

Discussion in 'XenForo Pre-Sales Questions' started by komi, Jan 19, 2013.

  1. komi

    komi Member

    I am very impressed by XenForo, but it appears that it does not support connecting to MySQL through Unix sockets. Why?
    • Does TCP not have limitations compared to Unix sockets?
    • Do Unix sockets not perform better than TCP?
  2. CyclingTribe

    CyclingTribe Well-Known Member

    If you specify your MySQL server as "localhost" in your config.php file it will connect through a UNIX socket.

    To check, run mysqladmin version and it'll tell you (here's what my server says):

    Server version 5.5.28-29.2-log
    Protocol version 10
    Connection Localhost via UNIX socket
    UNIX socket /var/run/mysqld/mysqld.sock
    Uptime: 15 days 3 hours 17 min 32 sec

    Shaun :D
    Jake Bunce, HWS and lazy llama like this.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page