LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 08-13-2005, 06:49 AM   #1
jme
Member
 
Registered: Sep 2003
Location: Cardiff, UK
Distribution: Debian
Posts: 49

Rep: Reputation: 15
MySQL Error [mysqld: unknown variable 'old_passwords=1'] after 'apt-get upgrade'


Yesterday I did an apt-get upgrade on my workstation and when I have come to start-up MySQL I am getting the following error:

Code:
mysqld: unknown variable 'old_passwords=1'
I am running Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i386)

I have tried google-ing for this to no avail.

Any thoughts?

Jamie
 
Old 08-13-2005, 02:53 PM   #2
corfe
Member
 
Registered: Dec 2004
Location: Washington State, USA
Distribution: Debian Sid
Posts: 128

Rep: Reputation: 15
Check out this Bug Report - it looks like the same thing. I don't have mysql installed, but if you can figure out which config file the bug poster is talking about, and comment out the same line, it sounds like that will fix it.

If you're not able to fix it that way, you can always revert to the old version: The only way I know of how to do that, is to go to /var/cache/apt/archives, and look for the last version of the package : check "dpkg -l mysql-server", see what version it says, something like 4.0.24-x. Now in /var/cache/apt/archives, find the deb file for mysql version 4.0.24-y, where y is (x-1), or the previous version (the one you had right before it broke). "dpkg -i filename.deb" to install that package; if it depends on some packages that need downgraded too, dpkg will error out and tell you which files it needs. Then just try a dpkg -i again, with all those files it needs together on the command line.

Actually, does anyone know a better way to downgrade to a previous version of a package?
 
Old 08-14-2005, 07:18 AM   #3
jme
Member
 
Registered: Sep 2003
Location: Cardiff, UK
Distribution: Debian
Posts: 49

Original Poster
Rep: Reputation: 15
thanks for the link - only problem is that i can't find the file that he's refering to...

If anyone has any thoughts ... :P

Jamie
 
Old 08-14-2005, 10:44 AM   #4
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
/etc/mysql/my.cnf
 
Old 08-15-2005, 07:43 AM   #5
jme
Member
 
Registered: Sep 2003
Location: Cardiff, UK
Distribution: Debian
Posts: 49

Original Poster
Rep: Reputation: 15
Cheers.

I don't know how I missed that!
 
Old 08-17-2005, 10:19 PM   #6
chris71mach1
LQ Newbie
 
Registered: Apr 2005
Location: Arlington, TX
Distribution: Debian
Posts: 15

Rep: Reputation: 1
yea and by the way, yall freakin ROCK! this thread and the bugfix that yall posted here helped me fix my own mysql server. this is why linux rocks. thanks you guys!
 
Old 08-29-2005, 11:17 AM   #7
magellan2k
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Hi,

thanks, this helped me too. There was only 1(!) link at google with
unknown variable 'old_passwords=1'

So - that's it.
Thanx a lot!
 
Old 08-31-2005, 06:11 AM   #8
bram
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Quote:
This was a temporary problem. Now the mysql-server (4.0) package is no longer
availble and replaced by mysql-server-4.1
but i guess this only works for sarge


Last edited by bram; 08-31-2005 at 06:13 AM.
 
Old 08-31-2005, 11:00 PM   #9
Abject
Member
 
Registered: Mar 2002
Location: Studio City, CA
Distribution: Debian (Sarge-Sid)
Posts: 76

Rep: Reputation: 15
Also causes "Can't connect to local MySQL server through socket..." error

I had this problem after upgrading MySQL 4.0 (Sid/Etch). At first, it looked like this:
Code:
Starting MySQL database server: mysqld...failed.
        Please take a look at the syslog.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
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!
Went to this section of the MySQL docs, which said (among other things) to try starting MySQL by hand:
Code:
# mysqld
050831 20:35:50 mysqld: unknown variable 'old_passwords=1'
And that led me here!

Thanks, corfe!
 
Old 09-05-2005, 04:07 PM   #10
moz667
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Re

Solved comment a line in /etc/my.cnf thats have old_passwords=1...

but don't know for what is this.

Any ideas?




==============
Salud3!
 
Old 10-05-2005, 07:55 AM   #11
smarinier
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Maybe "old-passwords" is more correct than "old_password" and second, old-password shouldn't be used in [client] section, but only in server ([mysqld]).
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mysqld error : 'mysql ended' anindyanuri Slackware 8 11-25-2005 11:14 PM
problem with apt after mysql upgrade davesbedroom Red Hat 1 11-10-2005 05:21 PM
Apt-get upgrade error Quietus25 Linux - Newbie 3 07-11-2005 07:02 PM
error after apt-get upgrade... twkz Debian 10 07-04-2005 09:28 AM
MYSQL on Slackware9.0 ./mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13) Litn Linux - Software 2 09-02-2003 09:00 PM


All times are GMT -5. The time now is 05:00 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
Open Source Consulting | Domain Registration