Title: mysqldump detection wrong?
Last modified: February 9, 2018

---

# mysqldump detection wrong?

 *  Resolved [kitchin](https://wordpress.org/support/users/kitchin/)
 * (@kitchin)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/mysqldump-detection-wrong/)
 * 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)

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/mysqldump-detection-wrong/#post-9960535)
 * Hey [@kitchin](https://wordpress.org/support/users/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](https://downloads.wordpress.org/plugin/duplicator.zip)
   –
   Uninstall your current version and install this one.
 * Let me know if this solves your issue~
 * Thanks
 *  [peripatetic](https://wordpress.org/support/users/peripatetic/)
 * (@peripatetic)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/mysqldump-detection-wrong/#post-10063519)
 * 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
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/mysqldump-detection-wrong/#post-10083137)
 * Hey [@peripatetic](https://wordpress.org/support/users/peripatetic/),
 * In this file:
    [https://github.com/lifeinthegrid/duplicator/blob/master/classes/class.db.php](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.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/mysqldump-detection-wrong/#post-10083137)
 * Status: resolved