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

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 03-25-2010, 06:53 AM
Active Member
 
Posts: 35
Default mysql.server is not running

Hi,

I re-installed zimbra. But it seems that this time mysql.server is not working.

[zimbra@zimbra root]$ zmcontrol start
Host xxxx.xxxx.xx
Starting logger...Done.
Starting mailbox...Done.
Starting memcached...Done.
Starting imapproxy...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting snmp...Done.
Starting spell...Done.
Starting mta...Done.
Starting stats...Done.

[zimbra@zimbra root]$ zmcontrol status
Host zimbra.amnesty.nl
antispam Running
antivirus Running
imapproxy Running
ldap Running
logger Running
mailbox Stopped
mysql.server is not running.
memcached Running
mta Running
snmp Running
spell Running
stats Stopped

[zimbra@zimbra root]$ mysql.server start
Starting mysqld...done.

[zimbra@zimbra root]$ mysql.server status
mysql is not running

[zimbra@zimbra root]$ mysql mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)

[zimbra@zimbra root]$ zmmysqlstatus
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)
Error while running 'mysql --user=zimbra --password=zimbra --database=zimbra --batch --skip-column-names'. at /opt/zimbra/bin/zmmysqlstatus line 248.

How can I fix this problem?
Reply With Quote
  #2 (permalink)  
Old 03-25-2010, 07:09 AM
Moderator
 
Posts: 7,929
Default

Why did you re-install when you had it working ? How did you clean up the old install ?
__________________
Reply With Quote
  #3 (permalink)  
Old 03-25-2010, 07:13 AM
Active Member
 
Posts: 35
Default

Quote:
Originally Posted by uxbod View Post
Why did you re-install when you had it working ? How did you clean up the old install ?
I re-installed my whole linux machine first i removed zimbra with the command sh install.sh -u and: rm -rf zimbraserver
Reply With Quote
  #4 (permalink)  
Old 03-25-2010, 07:21 AM
Moderator
 
Posts: 7,929
Default

Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain mx
dig yourdomain any
host `hostname` <- note backticks and not single quotes
Did you also disable SELinux and IPTables ?
__________________
Reply With Quote
  #5 (permalink)  
Old 03-25-2010, 10:05 PM
Elite Member
 
Posts: 338
Default

can you ping localhost or 127.0.0.1?
If you can't ping that, mysql can't start
Reply With Quote
  #6 (permalink)  
Old 03-26-2010, 02:02 AM
Active Member
 
Posts: 35
Default

# Do not remove the following line, or various programs
# that require network functionality will fail.
XXX.XXX.X.X XXXX.XXXX.com XXXX
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6


nameserver XX.XX.XX.XX
nameserver XX.XX.XX.XX


[zimbra@zimbra root]$ dig yourdomain mx

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> yourdomain mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 31279
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;yourdomain. IN MX

;; AUTHORITY SECTION:
. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2010032600 1800 900 604800 86400

;; Query time: 34 msec
;; SERVER: XX.XX.XX.XX#53(XX.XX.XX.XX)
;; WHEN: Fri Mar 26 09:53:10 2010
;; MSG SIZE rcvd: 103

[zimbra@zimbra root]$ dig yourdomain any

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> yourdomain any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 61384
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;yourdomain. IN ANY

;; AUTHORITY SECTION:
. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2010032600 1800 900 604800 86400

;; Query time: 35 msec
;; SERVER: XX.XX.XX.XX#53(XX.XX.XX.XX)
;; WHEN: Fri Mar 26 09:53:25 2010
;; MSG SIZE rcvd: 103


[zimbra@zimbra root]$ 'hostname'
XXX.XXX.com
Reply With Quote
  #7 (permalink)  
Old 03-26-2010, 02:04 AM
Moderator
 
Posts: 7,929
Default

Well that tells us nothing as you have removed all the necessary detail; plus you need to execute
Code:
host `hostname`
and not just
Code:
`hostname`
__________________
Reply With Quote
  #8 (permalink)  
Old 03-26-2010, 02:16 AM
Active Member
 
Posts: 35
Default

# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.8.6 zimbra.xxxx.com zimbra
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6


nameserver 194.109.6.66
nameserver 194.109.9.99


[zimbra@zimbra root]$ dig yourdomain mx

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> yourdomain mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 31279
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;yourdomain. IN MX

;; AUTHORITY SECTION:
. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2010032600 1800 900 604800 86400

;; Query time: 34 msec
;; SERVER: 194.109.6.66#53(194.109.6.66)
;; WHEN: Fri Mar 26 09:53:10 2010
;; MSG SIZE rcvd: 103

[zimbra@zimbra root]$ dig yourdomain any

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> yourdomain any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 61384
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;yourdomain. IN ANY

;; AUTHORITY SECTION:
. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2010032600 1800 900 604800 86400

;; Query time: 35 msec
;; SERVER: 194.109.6.66#53(194.109.6.66)
;; WHEN: Fri Mar 26 09:53:25 2010
;; MSG SIZE rcvd: 103

[zimbra@zimbra root]$ host 'hostname'
Host hostname not found: 3(NXDOMAIN)
Reply With Quote
  #9 (permalink)  
Old 03-26-2010, 02:19 AM
Active Member
 
Posts: 35
Default

[zimbra@zimbra root]$ host `hostname`
zimbra.xxxx.com has address 194.109.106.6
Reply With Quote
  #10 (permalink)  
Old 03-26-2010, 02:31 AM
Moderator
 
Posts: 7,929
Default

Your DNS A record for the Zimbra server does not match /etc/hosts.
__________________
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.