Ubuntu下清空mysql数据的方法:
1.打开Ubuntu系统,进入终端命令行。
2.输入命令中卸载MySQL。
sudo apt-get remove mysql-common
sudo apt-get autoremove --purge mysql-server⑸.7
3.再输入命令清除残留数据。
dpkg -l|grep ^rc|awk '{print$2}'|sudo xargs dpkg -P
4.查看MySQL的剩余依赖项。
dpkg --list|grep mysql
5.删除剩余依赖项,例如:
sudo apt-get autoremove --purge mysql-apt-config
本文来源:https://www.yuntue.com/post/76479.html | 云服务器网,转载请注明出处!

微信扫一扫打赏
支付宝扫一扫打赏