Steps to change PHP version in right way

Kindly mark the solution for the issue in the title to help the community. As for you -bash: !": event not found issue turn off history substitution using set +H

mysqldump -u admin_user -p mywebsiteDB > backup.sql

To dump multiple databases:

mysqldump -u root -p --databases db_name1 db_name2 | gzip > full_backup.sql.gz