I had to reboot in the middle of a large data import. I only have one mysql database, which has now been corrupted.How can I completely remove mysql and reinstall it? I've tried apt-get purge mysql-server, then removing /var/lib/mysql/* and reinstalling, but apt-get does not prompt me for a root name and password nor does it recreate the /var/lib/mysql files. How can I reinstall?
How can I completely reinstall mysql?
linux;ubuntu;apt;mysql
You should do the following:apt-get purge mysql-server mysql-common mysql-client-<version>rm -rf /var/lib/mysqlrm -rf /etc/mysql*Then you can reinstall in full.