I have the suspiction that my MySQL installation and all databases are somehow borked. For a fresh start, I would like to create dumps from all the databases, uninstall MySQL, delete the data in /var/lib/mysql, reinstall MySQL, and then import all the dumps.
I know I could figure out the individual commands for each step.
But is there a more convenient, automated way to do this all at once, where I can leave the computer alone for a while, come back and it is finished?
$ mysql --version mysql Ver 14.14 Distrib 5.6.19, for debian-linux-gnu (x86_64) using EditLine wrapper