简体   繁体   中英

MySQL- Mysql-server uninstall ubuntu

I want to remove mysql with all data and reinstall it back. After uninstall and new installation all users are the same. Can i remove it and wipe all users, to have only one new root user?

sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
sudo apt-get autoremove -y
sudo apt-get autoclean
sudo rm -rf /etc/mysql
sudo rm -rf /etc/mysql /var/lib/mysql
apt-get --purge remove "mysql*"

This helped me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM