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.
Backup task ends with error: "DV0270: User-defined script failed".
This occurs because the path to MySQL dump is missing from the operating system PATH variable.
Add the MySQL dump utility to the system PATH (this is required to allow the MySQL database backup script installed on Linux to properly define its arguments):
Run the terminal as root, for example:
Execute the following commands:
Assigning the path to the MySQL dump utility should resolve issues with backing up MySQL databases.
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
