Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: MYSQLD failing
PostPosted: Thu Apr 09, 2009 12:29 pm 
Offline
Junior Member

Joined: Wed Feb 18, 2009 4:50 pm
Posts: 47
So, I am in the process of installing courier/squirrelmail and so I installed mysql. I'm running a Debian 5.0 server.

At startup I get the message:
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!


I checked /var/log/syslog and it tells me this:
Apr 9 16:30:08 mail authdaemond: failed to connect to mysql server (server=localhost, userid=mailad
min): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Any ideas?


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 4:33 pm 
Offline
Senior Member
User avatar

Joined: Sat Oct 16, 2004 11:13 am
Posts: 176
Are you root?


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 5:47 pm 
Offline
Junior Member

Joined: Wed Feb 18, 2009 4:50 pm
Posts: 47
This is during the boot process. And I always sudo when attempting to restart the service.


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 6:05 pm 
Offline
Senior Member

Joined: Tue Apr 29, 2008 6:26 pm
Posts: 58
Website: http://blog.shadypixel.com/
Anything in /var/log/mysql.log or /var/log/mysql.err?

What about /var/log/syslog?


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 6:21 pm 
Offline
Junior Member

Joined: Wed Feb 18, 2009 4:50 pm
Posts: 47
/var/log/syslog;

Code:
mail /var/log: sudo tail syslog
Apr  9 22:21:17 mail mysqld[2139]: 090409 22:21:17  InnoDB: Starting shutdown...
Apr  9 22:21:19 mail mysqld[2139]: 090409 22:21:19  InnoDB: Shutdown completed; log sequence number 0 43655
Apr  9 22:21:19 mail mysqld[2139]: 090409 22:21:19 [Note] /usr/sbin/mysqld: Shutdown complete
Apr  9 22:21:19 mail mysqld[2139]:
Apr  9 22:21:19 mail mysqld_safe[2170]: ended
Apr  9 22:21:31 mail /etc/init.d/mysql[2300]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Apr  9 22:21:31 mail /etc/init.d/mysql[2300]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
Apr  9 22:21:31 mail /etc/init.d/mysql[2300]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Apr  9 22:21:31 mail /etc/init.d/mysql[2300]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Apr  9 22:21:31 mail /etc/init.d/mysql[2300]:


Nothing in mysql.log or mysql.err


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 7:11 pm 
Offline
Senior Member

Joined: Tue Apr 29, 2008 6:26 pm
Posts: 58
Website: http://blog.shadypixel.com/
Try running mysqld from the command line. It might have more debugging output.


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 7:13 pm 
Offline
Senior Member

Joined: Tue Apr 29, 2008 6:26 pm
Posts: 58
Website: http://blog.shadypixel.com/
Also, did you make any changes to mysql since installing? The default debian package should just run.


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 7:47 pm 
Offline
Junior Member

Joined: Wed Feb 18, 2009 4:50 pm
Posts: 47
btmorex wrote:
Try running mysqld from the command line. It might have more debugging output.


I didn't know I could run it from something other than the command line when using a server...

The output is what I've posted.


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 7:48 pm 
Offline
Junior Member

Joined: Wed Feb 18, 2009 4:50 pm
Posts: 47
btmorex wrote:
Also, did you make any changes to mysql since installing? The default debian package should just run.


I was tinkering with /etc/hosts

Not saying thats the last change I made(busy day) but its what I remember most recently.


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 8:17 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Quote:
I didn't know I could run it from something other than the command line when using a server...

I suspect he meant in contrast to rebooting the server.

It sounds like you have two problems: 1) mailadmin (courier?) can't connect to mysql, and 2) mysqld isn't starting.

Which packages did you install for mysql ? Presumably, you installed both the client and server packages ?


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 8:29 pm 
Offline
Junior Member

Joined: Wed Feb 18, 2009 4:50 pm
Posts: 47
mjrich wrote:
Quote:
I didn't know I could run it from something other than the command line when using a server...

I suspect he meant in contrast to rebooting the server.

It sounds like you have two problems: 1) mailadmin (courier?) can't connect to mysql, and 2) mysqld isn't starting.

Which packages did you install for mysql ? Presumably, you installed both the client and server packages ?


That's a good summary of the problems at the moment.

Here is my most recent command:
Code:
sudo aptitude install postfix postfix-mysql mysql-server postfix-tls libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl telnet mailx


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 9:50 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
1) apt-cache policy mysql-client ?
2) double check /etc/hosts...


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 10:10 pm 
Offline
Junior Member

Joined: Wed Feb 18, 2009 4:50 pm
Posts: 47
mjrich wrote:
1) apt-cache policy mysql-client ?
2) double check /etc/hosts...


Code:
mysql-client:
  Installed: 5.0.51a-24
  Candidate: 5.0.51a-24
  Version table:
 *** 5.0.51a-24 0
        500 http://mirror.cc.columbia.edu lenny/main Packages
        100 /var/lib/dpkg/status


/etc/hosts:
Code:
127.0.0.1 localhost.localdomain         localhost
192.168.0.100 mail.mydomain.com



Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 10:29 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Quote:
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!

Do you still get this when (re)starting via sudo /etc/init.d/mysql restart, while tailing /var/log/syslog ?

If there is a chance you might have modified any of the mysql config files, it might be worth reinstalling mysql-client and mysql-server with --purge.


Top
   
 Post subject:
PostPosted: Thu Apr 09, 2009 10:49 pm 
Offline
Junior Member

Joined: Wed Feb 18, 2009 4:50 pm
Posts: 47
mjrich wrote:
Quote:
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!

Do you still get this when (re)starting via sudo /etc/init.d/mysql restart, while tailing /var/log/syslog ?

If there is a chance you might have modified any of the mysql config files, it might be worth reinstalling mysql-client and mysql-server with --purge.


Funny enough...when I try to --purge remove mysql-server/client it reinstalls mysql and prompts me for a password...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group