Support » Plugin: Duplicator - WordPress Migration Plugin » wp-config.php uses ” instead of ‘ for the password

  • Resolved JohannesDeml

    (@johannesdeml)


    I just started using Duplicator and had a problem getting it running in the first place. I debugged and found the problem: In wp-config.php the Password is inside Double Qutation marks instead of single ones. This is the file I get when running the installer.php
    define(‘DB_NAME’, ‘name’);

    /** MySQL database username */
    define(‘DB_USER’, ‘name’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, “password”);

    And this is the original file from the backup:
    define(‘DB_NAME’, ‘name’);

    /** MySQL database username */
    define(‘DB_USER’, ‘name’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘password’);

    Only the original one works for me. Maybe because of special characters in the password, even though I don’t have ” or ‘ in my password.

    I thought this was noteworthy, since it took me some time to figure it out. Couldn’t find the problem in the forum. Do you already know about it?

    Other than that, awesome plugin, works really well!
    All the best
    Johannes

Viewing 5 replies - 1 through 5 (of 5 total)
  • Oh, I just found that this is aduplicate for https://wordpress.org/support/topic/cant-connect-to-mysql-after-migration/

    Did you already receive a support ticket?

    Plugin Author Cory Lamle

    (@corylamleorg)

    We did! We think there should be a fix now…

    If you can give the developer version a try it may have the updates for your issue. The very latest version (1.3.11) can be found by following these instructions:

    https://github.com/lifeinthegrid/duplicator/archive/master.zip
    – Uninstall your current version and install this one.

    Let me know if this solves your issue~

    Thanks~

    joe2019

    (@joe2019)

    Similar but so true.
    Used Duplicator to migrate a site. All a huge failure. Now I have no access to my original site at all. See bellow.
    I would like to know what files does Duplicator create with my SQL and also withing my root server. I went in through sftp and I see a lot of things which I am not sure were there before. Currently I have no access with nothing. I never understand how people can bring out programs or plugins which do not really work properly. My site is down and so is my business. Thanks guys.

    Warning: mysqli_real_connect(): (28000/1045): Access denied for user ‘U3700255’@’mordroog.store.d0m.de’ (using password: YES) in /mnt/web109/c1/63/5827363/htdocs/oceanadventures/wp-includes/wp-db.php on line 1612 Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /mnt/web109/c1/63/5827363/htdocs/oceanadventures/wp-includes/wp-db.php on line 1643 Warning: mysql_connect(): Access denied for user ‘U3700255’@’mordroog.store.d0m.de’ (using password: YES) in /mnt/web109/c1/63/5827363/htdocs/oceanadventures/wp-includes/wp-db.php on line 1643

    Access denied for user ‘U3700255’@’mordroog.store.d0m.de’ (using password: YES)
    Error establishing a database connection

    @corylamleorg : Thanks a lot for the fast fix. i didn’t even know that the project is on github, that’s awesome!
    The new version (1.3.12) can now also be just updated. My problem was fixed and it truely is a one click solution again for me. Interestingly I noticed, that the password still is surrounded with double qutoes instead of sinbgle ones. Is tis on purpose or does it have any benefits to do so?

    @joe2019 : Seems like the password or username is incorrect. Did you check your username and password in phpmyadmin if everything is correct? I’m not sure if you’re a free or a pro user, but in any case. This piece of software is actually done really well. It is really counterproductive to just say that the software is bad. You seem to have technical knowledge, so maybe debugging where the root of the problem should be the way to go. I also recommend testing if your backup works on a local machine before deploying something to live, this is not how you should oparte at all if you business depends on your website.

    Plugin Author Cory Lamle

    (@corylamleorg)

    Hey @johannesdeml

    As to why it might be behaving like that it is difficult to tell from this point. With 1000s of hosts, dozens of different PHP versions and MySQL combinations its impossible for us to anticipate the millions of different possible configurations/scenarios…

    If you want to submit a support ticket for this issue we can have a closer look at your setup. Please provide a link to this thread when submitting the ticket.

    Thanks~

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.