• Resolved tsahil

    (@tsahil)


    Hi,

    I have used Duplicator to copy a live site that I have with the intention of putting it on a local InstantWP install.
    The only problem is that the install.php script fails the “Test Connection” part indicating that it can’t connect to the server.

    Any suggestions?

    Tsahi

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey tsahil,

    Checkout this section on the FAQs I believe it may help with this issue:
    -> Browse to: http://lifeinthegrid.com/duplicator-faq
    -> Find section: “3. Troubleshoot=> Database Issues”

    Hope that helps!

    Hi Tsahil

    InstantWP author here…
    InstantWP uses a non-standard MySQL port number and the latest version of Duplicator does not seem to find it. It is easy to fix though.
    Open up the pms_config.ini file in the iwpserver folder in a text editor.
    Change the line MySQLPort option to below:

    MySQLPort=3306

    Restart IWP and that should work.

    Regards

    Seamus

    You should be able to able to add the port number to the end of the host as such:

    localhost:3333

    Let me know if you have any issues…

    Also the very latest version (0.5.3) has better support for mysql.sock connections which can be found by following these instructions:

    -> Browse to http://wordpress.org/extend/plugins/duplicator/developers/
    -> Look for the section “Other Versions”
    -> Click on “Development Version” and download the zip plugin file
    -> Uninstall your current version and install this one
    -> Note: This is a development line version so please test in your sandbox first to make sure you have no issues…

    Cheers~

    JoshTT35

    (@joshtt35)

    I’m having the same problem in a local install of InstantWP and changing the port to 3306 in either the pms_config.ini or the field for host name both lead to ‘FAIL’ notices.

    I also just acquired the InstantWP Unleashed e-book, but I don’t think it mentions how to deal with connection test failures.

    seamusb

    (@seamusb)

    Hi Josh

    You should make sure you restart IWP after changing the config file.
    I can get the database to connect then.

    There will be an update to InstantWP Unleashed with the changes 🙂

    Seamus

    JoshTT35

    (@joshtt35)

    Restarting IWP after modifying the config file doesn’t seem to fix anything (and I double checked to make sure no other instances of the installer.php file were open in other windows). localhost, root, blank password all typed fine, no extra spaces or anything. Connection still fails. The only other thing modified from the default IWP installation is the deletion of the default wordpress files from within the wordpress directory (which yields two warnings at the top of the main IWP navigation menu).

    Oddly enough, if I input “password” into the password field (instead of blank) I get a “success” for server connection, but still fail for database. Any other password substitute shows fail for both.

    Reinstalling IWP and changing to 3306 yields the same double “fail.”

    seamusb

    (@seamusb)

    Interesting Josh.

    Three things (amongst others) could be an issue here:

    – Your database credentials are wrong, but this could only happen if you had changed them, which is unlikely as you used a default install (so the default password should be OK). Just worth mentioning though.

    – The MySQL database is running on the new port but something is blocking it. Check that you can login to PHPMyAdmin from IWP (this means the db is running ok). Check that you do not have another MySQL install using the same port (shut down any XAMPP installations for instance). Also make sure you have only one mysqld process in the Task Manager.

    – The new MySQL port may be blocked by your firewall. This is only an off chance, but you should check this out too.

    Hope one of these helps.

    Seamus

    JoshTT35

    (@joshtt35)

    That seemed to do the trick, Seamus. Existing MySQL running due to WebMatrix experiments with a local wordpress installation. I just tested it again and got a green ‘Success’ for both. Many thanks!

    Josh T.

    Cory Lamle

    (@corylamleorg)

    Thanks Seamus!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Failing MySQL connectivity test with InstantWP’ is closed to new replies.