Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter corvinonathan

    (@corvinonathan)

    I found some pages that address this problem. OS X’s PHP and the default OS X MySQL install do not agree on the location for the MySQL socket. Changing either the PHP or MySQL notion of where the socket should be fixes the problems, and lets everything work fine. There is an OS X install page that mentions this that the WordPres documentation links to, but there are others that do not mention it.

    The MySQL socket location can be changed by creating /etc/my.cnf, and adding:

    `
    [mysqld]
    socket=/var/mysql/mysql.sock
    `

    Alternatively, the location PHP looks for the MySQL socket can be changed in /etc/php.ini, by editing the line:

    mysql.default_socket = /var/mysql/mysql.sock

    To:

    mysql.default_socket = /tmp/mysql.sock

    Relevant discussion can be found at:

    https://girtby.net/offerings/wordpress-osx-local-mirror https://docs.info.apple.com/article.html?artnum=302977

    Hope this helps others who encounter this problem in the future.

    Best,

    Nathan

Viewing 1 replies (of 1 total)