mysqldump

MySQL: bash script to dump all users

If you need to dump all mysql users created on your linux machine you can do it quite easy, using a simple bash script. Create a new bash script as follows:

 Save the file, chmod +x dump_sqlusers.sh. Then just execute the script! It will dump all your users right on the screen. If you …

MySQL: bash script to dump all users Read More »