LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 01-06-2009, 07:54 AM   #1
bidevi
LQ Newbie
 
Registered: Jun 2007
Posts: 9

Rep: Reputation: 0
Debian etch hangs on mysqld while booting


Hi,

I'm running Debian Etch GNU/Linux with kernel 2.6.18-6-686 on 2 PC's. On PC #2, which I hadn't used for a while, all of the sudden Debian hangs while booting, on this line:

Starting MySQL database server: mysqld

I haven't the foggiest about what to do. Any help is welcome, but please keep your advice easy to follow.

Last edited by bidevi; 01-06-2009 at 07:56 AM.
 
Old 01-07-2009, 03:44 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Hi,

You could always start in single user mode, disable MySQL at startup and then, once you booted again, check the logs and if necessary upgrade/downgrade. Your box would at least boot.

Just a thought.
 
Old 01-07-2009, 12:55 PM   #3
bidevi
LQ Newbie
 
Registered: Jun 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Too little info

Thanx eco,

But it's too little info for me.

I start up in single user mode and get to the point where it says:

Give root password for maintenance

I type my root password and it says:

blah:~#

I type: /etc/init.d/mysql stop

I get:
Stopping MySQL database server: mysqld.

I haven't a clou what to do next. If you do I'd appreciate some hints.

Thanx,
Bidevi
 
Old 01-07-2009, 01:01 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
Quote:
I type my root password and it says:
blah:~#
Best is to type
chmod -x /etc/init.d/mysql

This will prevent the execution at boot.
Reboot your system.

Then do
blah:~#chmod +x /etc/init.d/mysql
blah:~#/etc/init.d/mysql start
and see if there are error messages in the log files.
 
Old 01-08-2009, 02:49 AM   #5
bidevi
LQ Newbie
 
Registered: Jun 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Now it says: invalid pointer

Thanx repo,

I was able to boot up following your instruction. Then, when I tried to restart mysql, Terminal said:

Starting MySQL database server: mysql*** glibc detected *** free(): invalid pointer: 0x08acfa50 ***

What could I do next?

Best,
Bidevi
 
Old 01-08-2009, 05:00 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
which version are you using?
try to upgrade to the latest version.

Also, do you use mysql?
 
Old 01-08-2009, 05:07 AM   #7
bidevi
LQ Newbie
 
Registered: Jun 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Latest version

I executed apt-get update, also apt-get upgrade. I removed mysql server et cetera and reinstalled it. All to no avail.

And yes, I use mysql.

The thing is, I use this Debian version just for experiments, so it's no problem to do a complete new installation. But if this can happen here, it could happen on my other PC too, so I want to be able to solve it without trashing the whole thing and start anew.

Which brings me to the next point: what's the best way to make a complete backup of my system that could be transported to another PC?
 
Old 01-08-2009, 05:36 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
to find the version you are using
#apt-cache search mysql-server

Quote:
Which brings me to the next point: what's the best way to make a complete backup of my system that could be transported to another PC?
There ae several threads on this topic.
 
Old 01-08-2009, 06:57 AM   #9
bidevi
LQ Newbie
 
Registered: Jun 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Output of apt-cache

This is the output:

cacti - Frontend to rddtool for monitoring systems and services
mysql-server - mysql database server (meta package depending on the latest version)
mysql-server-4.1 - mysql database server (transitional package)
mysql-server-5.0 - mysql database server binaries
phpbb2-conf-mysql - Automatic configurator for phpbb2 on MySQL database
 
Old 01-08-2009, 07:05 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
Perhaps this thread can give some pointers:
http://www.linuxquestions.org/questi...2c1120-345095/
 
Old 01-08-2009, 07:11 AM   #11
bidevi
LQ Newbie
 
Registered: Jun 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Too complicated

Thanx but no: too complicated. It's easier to reinstall Etch.
 
Old 01-08-2009, 02:40 PM   #12
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
did you just uninstall mysql-server-5.0 or did you purge it ?
I would have purged to get rid of the config files as well, so the re-install would have been clean.

aptitude purge mysql-server-5.0 mysql-common
aptitude clean
aptitude update
aptitude install mysql-server-5.0



I would check for version like this..
Code:
it-etch:~$ aptitude search ~i | grep mysql-server
i   mysql-server-5.0                - MySQL database server binaries   
         
it-etch:~$ apt-cache policy mysql-server-5.0
mysql-server-5.0:
  Installed: 5.0.51a-20
  Candidate: 5.0.51a-20
  Version table:
 *** 5.0.51a-20 0
        500 http://ftp.uwsg.indiana.edu lenny/main Packages
        100 /var/lib/dpkg/status

Last edited by farslayer; 01-08-2009 at 02:42 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
debian etch randomly/frequently hangs Virtuality Debian 6 01-12-2008 10:02 AM
Dual booting Debian Etch and Win Xp! matrix13 Linux - Software 2 06-18-2007 11:26 PM
Debian Etch Netinstall Not Booting! BarfBag Debian 5 12-31-2006 10:03 PM
Windows XP hangs first time after booting debian nebraska Linux - Software 2 07-17-2006 07:08 AM
setting up mysqld in debian? microsoft/linux Linux - General 3 03-29-2005 11:54 PM


All times are GMT -5. The time now is 03:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration