Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-2010, 06:44 AM
Active Member
 
Posts: 45
Default MySQL recovery

So I upgraded one of my MTA's this morning to 6.0.9, and for some reason the upgrade was getting stuck on Starting Mysql. Everything I've read points to a corrupt database.

Everything I found points to the Mysql Crash Recovery

When I get to this step:
mysql --batch --skip-column-names -e "show databases" | grep -e mbox -e zimbra > /tmp/mysql.db.list

I get the error below:
[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist


I've got a call into support with a server down, but just wanted to reachout to the forums to see if anyone can help as well...
__________________
OS : Ubuntu 6.02 LTS
ZCS : zcs-NETWORK-6.0.8_GA_2661.UBUNTU6
Reply With Quote
  #2 (permalink)  
Old 11-24-2010, 07:02 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

It really depends on what your exact problem is, there's a couple of threads marked as 'Solved' here: site:zimbra.com +"Fatal error: Can't open and lock privilege tables: Table 'mysql.host'" - Yahoo! Search Results
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 11-24-2010, 07:17 AM
Partner (VAR/HSP)
 
Posts: 186
Default

If your MySQL Server is not starting you may try to repair the table by

Code:
/opt/zimbra/mysql/bin/myisamchk -r /opt/zimbra/db/data/mysql/*.MYI
This can fix almost anything on an MyISAM table.
__________________
Best regards

Andreas Wolske

managedhosting.de GmbH

Zimbra Cloud Hosting, Consulting & Support
VMware vCloud Powered Serviceprovider
Reply With Quote
  #4 (permalink)  
Old 11-30-2010, 12:38 PM
Active Member
 
Posts: 45
Default

So it turned out that I accidently rm -rf'd the SQL logs...it's was all bad. Even though I ctrl+c'd very quickly when I saw what I had typed, I had to work with support on rebuilding the mysql tables.
__________________
OS : Ubuntu 6.02 LTS
ZCS : zcs-NETWORK-6.0.8_GA_2661.UBUNTU6
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.