Databases: restore with mysql < sql instead of -e source sql

Version 1.58


When restoring the load of the backup/*.sql files will now be down with a stdin pipe method, eg: mysql --defaults-extra-file=path_for_user_my.cnf --host=localhost (extra_mysql_restore_options) db_name < /path/to/db.sql instead of the previous: mysql --defaults-extra-file=path_for_user_my.cnf -e "source /path/to/db.sql" --host=localhost (extra_mysql_restore_options) db_name as it was found some cases with -e "source .sql" caused mysql to return a zero exit code, hiding relevant errors that were there.

Interested to try DirectAdmin? Get a 30-day Free Trial!