Laradock mysqldump not found when executing artisan backup:run (Spatie Laravel Backup)

后端 未结 1 1121
暖寄归人
暖寄归人 2021-01-26 08:59

I have deployed a Laravel application with Laradock.

I want to point out that the database connection works fine (users can register, login, ... etc.).

In

相关标签:
1条回答
  • 2021-01-26 10:03

    As mentioned here, edit laradock .env file and set:

    WORKSPACE_INSTALL_MYSQL_CLIENT=true
    

    Then run:

    docker-compose build workspace && docker-composer up -d workspace
    

    That will update your workspace container and restart it.

    Connect to your container:

    docker-compose exec workspace bash
    

    You should have access to mysqldump:

    root@82d8b3b3c0a0:/var/www# which mysqldump
    /usr/bin/mysqldump
    
    0 讨论(0)
提交回复
热议问题