Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find mysqldump even after setting its path. #59

Closed
Mark-Lister opened this issue Sep 6, 2020 · 2 comments
Closed

Can't find mysqldump even after setting its path. #59

Mark-Lister opened this issue Sep 6, 2020 · 2 comments

Comments

@Mark-Lister
Copy link

I've been trying to implement this plugin but it can't seem to find mysqldump.
In my bootstrap.php file I set the binary using

Configure::write('DatabaseBackup.bin.mysqldump', '/backups/mysqldump');
Configure::write('DatabaseBackup.connection', 'default');
Plugin::load('DatabaseBackup');

Which is my path to mysqldump but it still doesn't seem to work.
I am using CakePHP 3.6.15 and just installed the plugin for cakephp3
I'm just running sudo bin/cake backup export but it say's it can't find the binary.

mysql  Ver 14.14 Distrib 5.7.26
mysqldump  Ver 10.13 Distrib 5.7.26

Thanks.

@Mark-Lister
Copy link
Author

It seemed to fix itself when I changed
Plugin::load('DatabaseBackup');
To..
Plugin::load('DatabaseBackup', ['bootstrap' => true]);

@mirko-pagliai
Copy link
Owner

Hello @Mark-Lister,

thanks for your report. Yes, the bootstrap is essential for the plugin to function properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants