I can't backup database, the log says :

[error][yii\base\Exception] yii\base\Exception: Could not create backup: The shell command "mysqldump {{...blablabla...}} failed with exit code -1. in /home/user/craft/vendor/craftcms/cms/src/controllers/UtilitiesController.php:38

Any ideas what error -1 means ?

  • It's not a duplicate of that other question. I've added the error message to both question titles, in order to show the distinction.
    – Lindsey D
    May 26 '18 at 16:56
  • Have you added mysqldump to your PATH environment variable? If so, was it a user based PATH or a whole system PATH variable?
    – Brad Bell
    May 30 '18 at 0:32
  • which mysqldump gives /usr/bin/mysqldump does that help ?
    – laurent
    May 31 '18 at 4:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.