LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-02-2011, 08:31 AM   #1
Spetnik
Member
 
Registered: Mar 2004
Posts: 40

Rep: Reputation: 15
Question After Debian upgrade, MySQL will not start


After upgrading a Debian test machine from Lenny to Squeeze, MySQL will no longer start.

When running /etc/init.d/mysql start, it responds that starting MySQL failed.

The following appears in the syslog:
Code:
Oct  2 08:29:20 /etc/init.d/mysql[14413]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Oct  2 08:29:20 /etc/init.d/mysql[14413]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
Oct  2 08:29:20 /etc/init.d/mysql[14413]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Oct  2 08:29:20 /etc/init.d/mysql[14413]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Any help would be greatly appreciated - thanks!

update:
I just tried running "/usr/sbin/mysqld" from the command line, and received the following:
Code:
111002  8:43:11 [Warning] '--log' is deprecated and will be removed in a future release. Please use ''--general_log'/'--general_log_file'' instead.
111002  8:43:12 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
111002  8:43:12 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
111002  8:43:12  InnoDB: Started; log sequence number 0 10980411
111002  8:43:12 [ERROR] /usr/sbin/mysqld: unknown option '--skip-bdb'
111002  8:43:12 [ERROR] Aborting

111002  8:43:12  InnoDB: Starting shutdown...
111002  8:43:18  InnoDB: Shutdown completed; log sequence number 0 10980411
111002  8:43:18 [Note] /usr/sbin/mysqld: Shutdown complete

Last edited by Spetnik; 10-02-2011 at 08:44 AM.
 
Old 10-02-2011, 08:56 AM   #2
jonkiribati
LQ Newbie
 
Registered: Sep 2011
Posts: 23

Rep: Reputation: Disabled
111002 8:43:12 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

did you try to run mysql_upgrade command ?
 
Old 10-02-2011, 08:58 AM   #3
Spetnik
Member
 
Registered: Mar 2004
Posts: 40

Original Poster
Rep: Reputation: 15
I've been looking for it, but cannot find it. Where is mysql_upgrade located?
 
Old 10-03-2011, 07:40 AM   #4
Spetnik
Member
 
Registered: Mar 2004
Posts: 40

Original Poster
Rep: Reputation: 15
UPDATE:
I tried replacing my.cnf with the original one and now I can start it with /usr/sbin/mysqld (still getting the "mysql_upgrade" messages, but I cannot find "mysql_upgrade" anywhere on the machine). However, /etc/init.d/mysql start still fails with the same messages in /var/logs/syslog.
 
Old 10-03-2011, 01:01 PM   #5
Spetnik
Member
 
Registered: Mar 2004
Posts: 40

Original Poster
Rep: Reputation: 15
Well, for some strange reason, it seems that mysql-server was not installed (according to apt-get). So I ran apt-get install mysql-server and it works! Weird - I wonder what happened during the Debian upgrade.

Last edited by Spetnik; 04-25-2012 at 06:48 AM.
 
Old 04-25-2012, 06:42 AM   #6
sut
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
Thank You - Same Problem here - solved...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] After Debian upgrade from Lenny to Squeeze, MySQL will not start fireball1974 Linux - Server 3 03-20-2011 07:28 PM
Couldn't start mysql services on Debian Lenny Tueleep86 Linux - Newbie 6 10-12-2010 02:25 AM
xorg dosent start after upgrade, debian sid. IM baack! Linux - Software 4 07-11-2009 04:20 AM
MySQL Server crashes on Start - Debian Etch bence8810 Linux - Server 5 05-01-2007 12:44 PM
Debian Sarge to Etch Upgrade Caused X Windows to Not Start sabot Debian 1 04-11-2006 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration