MySQL Error [mysqld: unknown variable 'old_passwords=1'] after 'apt-get upgrade'
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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?
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!
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!
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]).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.