$mysqldump not defined

ryan_courtnage - September 2, 2008 - 20:16
Project:Database Scripts
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:ceardach
Status:closed
Description

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.

#1

ceardach - September 2, 2008 - 20:46
Category:bug report» support request
Assigned to:Anonymous» ceardach
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

#2

ryan_courtnage - September 2, 2008 - 21:53

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

#3

ceardach - September 3, 2008 - 00:59

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

#4

ryan_courtnage - September 3, 2008 - 18:51

Thanks.

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

#5

ceardach - September 3, 2008 - 21:15

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

temp

Anonymous (not verified) - September 17, 2008 - 21:24

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

#6

Anonymous (not verified) - September 17, 2008 - 22:54
Status:fixed» closed

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

#7

ceardach - September 18, 2008 - 19:12

This really should be fixed now.

 
 

Drupal is a registered trademark of Dries Buytaert.