This is the script I run every morning to back up all of the databases in my MySQL database – it gets every database, including mysql, which has the users and access rights for users. Obviously, you’ll need to modify a few of the variables in the script, but it shouldn’t be difficult. There are…