Advertisement
BakerMan

Uninstall/reinstall MySQL on Ubuntu Server

Mar 21st, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. ; Useful set of instructions to
  2. ; remove and reinstall MySQL server
  3. ; on an Ubuntu server
  4.  
  5. sudo dpkg --configure -a
  6. sudo apt-get remove mysql-server mysql-server-5.1
  7. sudo apt-get autoremove && sudo apt-get autoclean
  8. If it hangs again, just kill all dpkg processes and run the three command again.
  9.  
  10. ; Reboot at this point if possible
  11. ; (not absolutely essential)
  12.  
  13. sudo apt-get install mysql-server mysql-client
  14. sudo mysql_upgrade --force -u root -purpassword
  15.  
  16. ; Credit to Memet on the Ubuntu Forums
  17. ; http://ubuntuforums.org/showthread.php?t=1535020
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement