Bug #53532 | RQG: internal mysqldump commands fail if mysqldump is not in PATH | ||
---|---|---|---|
Submitted: | 10 May 2010 8:24 | ||
Reporter: | John Embretsen | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Tools: Random Query Generator | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | Bernt Marius Johnsen | CPU Architecture: | Any |
[10 May 2010 8:24]
John Embretsen
[10 May 2010 8:44]
Philip Stoev
Bernt, we need a Server object accessible in all contexts (including from inside the grammar), that provides access to client_basedir or to mysqldump directly.
[10 Mar 2011 5:53]
Roel Van de Paar
I also get this error regularly. From a grep: The only correct one: ------------------------------ runall.pl: my $dump_result = system("\"$client_basedir/mysqldump\" --hex-blob --no-tablespaces --skip-triggers --compact --order-by-primary --skip-extended-insert --no-create-info --host=127.0.0.1 --port=$dump_ports[$i] --user=root $database | sort > $dump_files[$i]"); ------------------------------ The ones that need fixing: ------------------------------ lib/GenTest/Validator/DatabaseComparator.pm: my $mysqldump_result = system("mysqldump --compact --order-by-primary --skip-triggers --skip-extended-insert --no-create-info --host=127.0.0.1 --port=$ports[$port_id] --user=root $database | sort > $files[$port_id]"); lib/GenTest/Simplifier/Test.pm: my $mysqldump_cmd = "mysqldump -uroot --net_buffer_length=4096 --max_allowed_packet=4096 --no-set-names --compact --force --protocol=tcp --port=$tcp_port $simplified_database "; lib/GenTest/Reporter/BackupInterop.pm:my $mysqldump_result = system("mysqldump --compact --order-by-primary --skip-triggers --skip-extended-insert --no-create-info --host=127.0.0.1 --port=13000 --user=root $database | sort > $file_bak"); lib/GenTest/Reporter/BackupInterop.pm: my $mysqldump_result = system("mysqldump --compact --order-by-primary --skip-triggers --skip-extended-insert --no-create-info --host=localhost --port=13000 --user=root $database | sort > $file_res"); ------------------------------ And maybe: ------------------------------ lib/DBServer/MySQL/MySQLd.pm: osWindows()?"mysqldump.exe":"mysqldump"); ------------------------------
[14 Mar 2011 23:33]
Roel Van de Paar
Workaround: shell> sudo ln -s /your_mysql_path/bin/mysqldump /usr/bin/mysqldump