mysql --defaults-extra-file=/path/to/config.cnf
mysql --defaults-extra-file=config.cnf $MYSQL_DATABASE < $DB_BACKUP_FILE
https://ask-dev.ru/info/40236/suppress-warning-messages-using-mysql-from-within-terminal-but-password-written-in-bash-script
[client] user = whatever password = whatever host = whatever