LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-26-2006, 12:29 PM   #1
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Rep: Reputation: 15
using backports seems to have broken MySQL


I rebooted my computer the other day after having upgraded with the backports apt source and i noticed a fun little error as the boot information scrolled by:

Quote:
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Upon checking, the folder was there, but it was very blank. I tried to remove the program, remove the backports source, update, and then reinstall it, but no help.

How would I go about fixing this problem?
 
Old 02-26-2006, 01:28 PM   #2
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
Post the log.
Code:
tail -n 20 /var/log/mysql
tail -n 20 /var/log/mysql.err

Last edited by saman007uk; 02-26-2006 at 01:30 PM.
 
Old 02-26-2006, 01:48 PM   #3
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Original Poster
Rep: Reputation: 15
aopen25:/home/daniel# tail -n 20 /var/log/mysql
tail: error reading `/var/log/mysql': Is a directory
aopen25:/home/daniel# tail -n 20 /var/log/mysql.err
aopen25:/home/daniel#

This is bad I assume?
 
Old 02-26-2006, 01:59 PM   #4
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
Sorry, the logfiles should be in the /var/log/mysql directory.
 
Old 02-26-2006, 03:02 PM   #5
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Original Poster
Rep: Reputation: 15
aopen25:/var/log/mysql# ls -la
total 748
drwxr-s--- 2 mysql adm 4096 2006-02-26 11:04 .
drwxr-xr-x 15 root root 4096 2006-02-26 11:13 ..
-rw-rw---- 1 mysql adm 6333 2006-02-26 10:56 mysql-bin.000035
-rw-rw---- 1 mysql adm 117 2006-02-26 10:56 mysql-bin.000036
-rw-rw---- 1 mysql adm 272 2006-02-26 10:56 mysql-bin.000037
-rw-rw---- 1 mysql adm 538 2006-02-26 10:56 mysql-bin.000038
-rw-rw---- 1 mysql adm 695 2006-02-26 10:56 mysql-bin.000039
-rw-rw---- 1 mysql adm 196 2006-02-26 10:56 mysql-bin.000040
-rw-rw---- 1 mysql adm 98 2006-02-26 10:56 mysql-bin.000041
-rw-rw---- 1 mysql adm 98 2006-02-26 11:04 mysql-bin.000042
-rw-rw---- 1 mysql adm 98 2006-02-26 11:04 mysql-bin.000043
-rw-rw---- 1 mysql adm 117 2006-02-26 11:09 mysql-bin.000044
-rw-rw---- 1 mysql adm 4 2006-02-20 06:26 mysql-bin.028
-rw-rw---- 1 mysql adm 12686 2006-02-21 06:26 mysql-bin.029
-rw-rw---- 1 mysql adm 21846 2006-02-22 06:26 mysql-bin.030
-rw-rw---- 1 mysql adm 390784 2006-02-23 06:26 mysql-bin.031
-rw-rw---- 1 mysql adm 214549 2006-02-24 06:26 mysql-bin.032
-rw-rw---- 1 mysql adm 40528 2006-02-25 06:26 mysql-bin.033
-rw-rw---- 1 mysql adm 4 2006-02-25 06:26 mysql-bin.034
-rw-rw---- 1 mysql adm 523 2006-02-26 11:04 mysql-bin.index

doesn't appear to have any log files.
 
Old 02-27-2006, 04:16 PM   #6
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Original Poster
Rep: Reputation: 15
If I were to remove the backports apt-source could I purge my package listings, redownload them all and then install the older verion of MySQL that I had before?

If so, how do i go about purgeing my apt package listing?
 
Old 02-27-2006, 05:11 PM   #7
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
Just use something like:

Code:
apt-get remove --purge mysql-common ...
Then remove bakcports from your sources file and install the packages again.
 
Old 02-27-2006, 05:28 PM   #8
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Original Poster
Rep: Reputation: 15
ok, i did all that, i've got 4.1 back (the problem was that it somehow had converted me to sql4.0, might have been the "-f upgrade" i did...)

Aaaany ways, now my problem is:
aopen25:/home/daniel# mysqld
060227 16:23:54 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
060227 16:23:54 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 4505122.
InnoDB: Doing recovery: scanned up to log sequence number 0 4505168
InnoDB: Last MySQL binlog file position 0 79, file name /var/log/mysql/mysql-bin.000054
060227 16:23:54 InnoDB: Flushing modified pages from the buffer pool...
060227 16:23:54 InnoDB: Started; log sequence number 0 4505168
060227 16:23:54 [ERROR] mysqld: Incorrect information in file: './mysql/user.frm'
060227 16:23:54 [ERROR] Fatal error: Can't open privilege tables: Incorrect information in file: './mysql/user.frm'
aopen25:/home/daniel# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)


How might this trouble be solved?
 
  


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
New Ubuntu Backports jolly1701 Ubuntu 3 10-02-2005 07:51 AM
Apache2, MySQL and PHP broken after updates mazzo Linux - Networking 10 09-15-2005 07:12 AM
Apt-get update, now MySQL is now Broken cmfarley19 Linux - Software 1 06-07-2005 11:21 AM
ubuntu backports coolpyrofreak Ubuntu 4 05-23-2005 03:35 PM
Redhat 9's autotools broken for apache, mysql, php? rylan76 Linux - Software 0 04-15-2004 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:28 AM.

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