Shell Script to backup all Databases at once!

Database backup or porting is an important activity for many of the developers. If you forgot to take up-to date backup of your whole databases; run the script similar as below.

Change your username, password to root’s credentials.

The script can err while attempting to backup databases like information_schema, performance_schema, mysql etc. which is ok and normal. But still is a good chance to save your time taking the backups.