MyBB Community Forums

Full Version: Using MySQL socket instead of networking
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey everyone,

I was wondering how I can configure MyBB to use a local Unix socket for MySQL instead of using networking, so that I can take one further step to secure my future VPS.

I already tried setting the MySQL host to unix:/path/to/MySQL.socket . Did I do something wrong there?
Try
:/path/to/socket
That doesn't work, and I even broke MyBB's error handler. I got the error "0 -".

Side question: is functions.php supposed to contain curl code?

Ugh... The socket file doesn't exist.
There's no point it won't speed anything up as it still runs as a process to connect. It's possible though.
http://www.php.net/mysql_connect
Quote:Whenever you specify "localhost" or "localhost:port" as server, the MySQL client library will override this and try to connect to a local socket (named pipe on Windows). If you want to use TCP/IP, use "127.0.0.1" instead of "localhost". If the MySQL client library tries to connect to the wrong local socket, you should set the correct path as in your PHP configuration and leave the server field blank.