[Delete old mysql, and reinstall the new one.]
delete old mysql
sudo apt-get autoremove --purge mysql-server-5.0
sudo apt-get remove mysql-server
sudo apt-get autoremove mysql-server
sudo apt-get remove mysql-common
clear the package.
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
Reinstall new server.
sudo apt-get install mysql-server
sudo apt-get install mysql-client
在剛才重新安裝的途中,他就會叫你設定root 密碼了。之後登入時會用到。
沒有留言:
張貼留言