several functions run mysql dump with a command like:

exec("$mysqldump $dump_options $db_connection_settings $filter > $file_path/$dump_file");

However, $mysqldump is not defined anywhere. I assume that this should be defined in config.inc.

Comments

ceardach’s picture

Assigned: Unassigned » ceardach
Category: bug » support
Status: Active » Fixed

If you have updated dbscripts from an earlier version, you may not have updated your customized config.inc file.

Ensure that you have these lines, and they are pointing to the appropriate locations:

// Location of mysql binaries (needs to be set if not in your path)
$mysql = 'mysql';
$mysqldump = 'mysqldump';

// Charset location
$charsets = '/usr/mysql/share/mysql/charsets';

If the binaries are not in your path, you will have to list their entire path, ie: $mysqldump = '/usr/local/mysql/bin/mysqldump'

If this is a new install of dbscripts, ensure that you have copied config.inc.example to config.inc

ryan_courtnage’s picture

It's a new install. config.inc.example is missing the $mysqldump var. I downloaded the tarball.

ceardach’s picture

Huh. This is the second time what I've committed hasn't gone through entirely. I'll look into it.

ryan_courtnage’s picture

Thanks.

Incidentally, I noticed that the README is also not updated to reflect the new script names, etc.

ceardach’s picture

Seriously? Damn. Ok, I need to go over my commit-to-drupal workflow because I know I meticulously went over all the documentation.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

ceardach’s picture

This really should be fixed now.