WordPress.org

Ready to get started?Download WordPress

Forums

Duplicator
[resolved] Deploy error-database connection failed (4 posts)

  1. hermesd
    Member
    Posted 7 months ago #

    Hello,

    I am trying to deploy a site developed on a localhost using XAMPP 1.7.3 on a Mac (OS 10.9).

    When I try to deploy the package of my local site onto the domain hosted on the mediatemple.net grid service, I get an error when I test the database connection before actually deploying. The error is:

    DATABASE CONNECTION FAILED!
    Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

    As far as I can tell everything is set up properly with the right db name, user and password.

    Any insight would be appreciated. Thanks.

    H

    http://wordpress.org/plugins/duplicator/

  2. Cory Lamle
    Member
    Plugin Author

    Posted 7 months ago #

    Hey hermesd,

    If recall there are some workaround on the FAQ for mysqld.sock issues:
    -> Browse to: http://lifeinthegrid.com/duplicator-faq
    -> Find section: "3. Troubleshoot=> Database Issues"

    Hope that helps!

  3. hermesd
    Member
    Posted 7 months ago #

    That solved the problem. Just so you know, mediatemple.net is another provider where localhost doesn't work as the host name.

    Here is a link to their knowledge base showing the format for host name, in case you want to add it to the FAQ.

    https://kb.mediatemple.net/questions/4/Why+can%27t+I+connect+to+my+MySQL+database+from+PHP%3F#gs

    Thanks!

  4. Cory Lamle
    Member
    Plugin Author

    Posted 7 months ago #

    Thats good to hear! Thanks for the link and update!

Reply

You must log in to post.

About this Plugin

About this Topic