Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save CMCDragonkai/a211f6bf19ae9844ec2763a4438f4495 to your computer and use it in GitHub Desktop.
Save CMCDragonkai/a211f6bf19ae9844ec2763a4438f4495 to your computer and use it in GitHub Desktop.
Connecting Wordpress to Database using Unix Domain Socket #wordpress #php

Connecting Wordpress to Database using Unix Domain Socket

Do this inside your wp-config.php.

It must be the absolute path to the socket.

define('DB_HOST', 'localhost:' . __DIR__ . '/.mysql/mysql.sock');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment