mysql 초기화

sangwoo noh·2022년 3월 4일
0

linux

목록 보기
3/18

MySQL Linux에서 완전 삭제 (Ubuntu/Debian)

시스템에 남아있는 MySQL 쓰레기가 없는지 확인

  1. mysql과 관련된 모든것을 지움
sudo apt-get remove --purge mysql*
  1. 찌꺼기가 남았는지 확인
dpkg -l | grep mysql
  1. 위 작업에서 찌꺼기가 남았다면 개별로 삭제
sudo apt-get remove --purge {쓰레기}
  1. 마무리 작업
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get autoremove
sudo apt-get autoclean
profile
하기로 했으면 하자

0개의 댓글