Web/Server
[Linux] Ubuntu - MySQL 삭제 및 재설치
수짱수짱
2022. 8. 17. 16:51
1. mysql 패키지 삭제
apt-get remove --purge mysql*
2. dpkg 패키지 설치
apt-get install dpkg-dev
3. mysql 관련 파일 확인
dpgk -l | grep mysql
4. 3번에서 확인한 파일들 하나씩 삭제
apt-get remove --purge {파일명}
5. 폴더 및 관련 항목 삭제
rm -rf /etc/mysql /var/lib/mysql
rm -rf /var/log/mysql
rm -rf /var/log/mysql.*
rm /var/lib/dpkg/info/*
apt-get autoremove
apt-get autoclean
6. 재설치
apt-get install mysql-server --fix-missing --fix-broken
참조: https://2vup.com/ubuntu-remove-mysql/
[Ubuntu] Mysql 완전 삭제, 재설치
🪤 Ubuntu에서 Mysql 완전 삭제 mysql 관련 파일들 리스트 확인 위 커맨드로 확인한 mysql 관련 파일 삭제 폴더 및 관련항목 삭제 재설치
2vup.com
sh: 0: getcwd() failed: No such file or directory on cited drive
I am trying to compile ARM code on Ubuntu 12.04 (Precise Pangolin). Everything is working fine when I put the code in the local directory. But when I put the code in the cited mount directory, an e...
stackoverflow.com