mysqlcheck -u root -p --auto-repair --check --optimize --all-databases
5 years ago
tembung jare!
sudo rm /usr/local/mysql9/28/2011 - added comment on last line. Thanks Justin for pointing this out!
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*
vim /etc/hostconfig # and remove the line MYSQLCOM=-YES-
sudo apt-key del 16126D3A3E5C1192
then updating the repositorysudo apt-get update
You should get a NO_PUBKEY error instead of a BADSIG error andsudo apt-key finger
should not find the key (called "Ubuntu Extras Archive Automatic Signing Key")sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
The result of apt-key finger should havepub 1024D/3E5C1192 2010-09-20
Key fingerprint = C474 15DF F48C 0964 5B78 6094 1612 6D3A 3E5C 1192
uid Ubuntu Extras Archive Automatic Signing Key
apt-get clean # Remove cached packages
cd /var/lib/apt
mv lists lists.old # Backup mirror info
mkdir -p lists/partial # Recreate directory structure
apt-get clean
apt-get update # Fetch mirror info
Source: this ubuntu forums thread| edited Dec 11 '11 at 23:02 |