๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT-Engineering/Linux

์šฐ๋ถ„ํˆฌ Ubuntu 18.04์—์„œ mysql5.7 ์™„์ „ ์‚ญ์ œ ๋ฐ ์žฌ์„ค์น˜

by ๐Ÿงž‍โ™‚๏ธ 2023. 8. 23.
๋ฐ˜์‘ํ˜•

 

 mysql5.7 ์™„์ „ ์‚ญ์ œ

 

๋‚ด ๊ฒฝ์šฐ ํŒจํ‚ค์ง€ ์„ค์น˜๋กœ ์ง„ํ–‰ํ–ˆ์—ˆ๊ธฐ์— ์•„๋ž˜์™€ ๊ฐ™์ด ๋ช…๋ น์–ด ์ž…๋ ฅ

sudo apt-get remove --purge mysql*

 

ํŒŒ์ผ๋“ค ์ „๋ถ€ ์‚ญ์ œ

sudo rm -rf /etc/mysql /var/lib/mysql
sudo rm -rf /var/log/mysql
sudo rm -rf /var/log/mysql.*

 

์•„๋ž˜์˜ ๋ช…๋ น์–ด๋กœ ํ™•์ธ์‚ฌ์‚ด

sudo apt-get autoremove

์ด๊ฒƒ๋„

sudo apt-get autoclean

 

 

 mysql5.7 ์žฌ์„ค์น˜

 

sudo apt-get install mysql-server --fix-missing --fix-broken
sudo mysql_secure_installation
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€