• Resolved kitchin

    (@kitchin)


    I’m on a pretty standard Linux cPanel hosting and the plugin is not detecting mysqldump correctly. Also it confusingly appends “.exe” to the path if I supply it, but that’s not the problem.

    The problem is this line in duplicator/classes/class.db.php
    if (@is_executable($mysqldump)) $path1 = (!empty($mysqldump)) ? $mysqldump : '';
    For me $mysqldump is ‘/usr/bin/mysqldump’, and is_executable($mysqldump) returns false.
    But if I insert $test = exec( $mysqldump ); print $test; I get “For more options, use mysqldump –help”. So it is executable. And it looks like this in the file system:
    -rwxr-xr-x 1 root root 4100226 Oct 19 09:24 /usr/bin/mysqldump*

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @kitchin,

    Thanks for the feedback! If you can give the developer version a try it may have the updates for your issue, its been updated to try and handle your environment better. The very latest version (1.2.33) can be found by following these instructions:

    Download Developer Version
    – Uninstall your current version and install this one.

    Let me know if this solves your issue~

    Thanks

    Also encountered this.
    $ which mysqldump
    /usr/bin/mysqldump
    $ ls -hal /usr/bin/mysqldump
    -rwxr-xr-x 1 root root 3.8M Feb 13 01:18 /usr/bin/mysqldump

    Installing developer version gave the same error.

    Database is in fact mariadb. Its a drop in replacement for mysql so shouldn’t be an issue, but I’m mentioning it in case its a factor

    Hey @peripatetic,

    In this file:
    https://github.com/lifeinthegrid/duplicator/blob/master/classes/class.db.php

    Is a method called getMySqlDumpPath.

    If you want to try the correct configuration that works on your server and post the update here (or in Git) we can test it and merge it in. This is typically much faster than us trying to guess what source will cause your server to work. We run mariadb on about 3/4 of our test environments so not 100% sure if that is the root cause.

    Thanks~

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘mysqldump detection wrong?’ is closed to new replies.