Comment on page

How to add MySQL Dump to path?

In this article, you will learn how to add the MySQL Dump utility to the path variable. This is necessary for define arguments for the MySQL database backup script installed on Linux.
Refer to this article if your backup task ends with error DV0270: User-defined script failed. This is because the path to MySQL Dump is missing from the Path variable in the operating system.

Assign the path to a system variable

Run the terminal as root. For example:
Execute the following commands:
mv /usr/bin/mysqldump /usr/bin/mysqldump0
echo '#!/bin/bash' > /usr/bin/mysqldump
echo 'export LD_LIBRARY_PATH=' >> /usr/bin/mysqldump
echo '/usr/bin/mysqldump0 $@' >> /usr/bin/mysqldump
chmod a+x /usr/bin/mysqldump
After assign the path to the MySQL Dump utility should solve problems with performing a backup of MySQL databases.
See also: