Page 1 of 1
Should MYSQL old_password =1 with ART PHP RPMS?
Posted: Sun Feb 19, 2006 4:38 pm
by acidbox
If I'm running the art PHP 4 rpms, should I have "Set-variable = old_password=1" in my.cnf? I have had issues where it tells me the client is out of date and I have had to update the password individually in the mysql console via the OLD_PASSWORD() function.
Is this an issue?
Posted: Sun Feb 19, 2006 5:24 pm
by scott
Yes you'll need to use old_passwords on an upgrade. Put the following in /etc/my.cnf:
[mysqld]
old_passwords=1
Posted: Sat Feb 25, 2006 11:56 am
by acidbox
Scott,
Is this because of a limitation by PHP, or just backwards compatibility with MySQL 3.2?
If disable old_passwords=1 and I create a script to update each domain by resetting the password with PASSWORD() instead of OLD_PASSWORD(), will PHP work normally?
The problem I'm having right now is that every time you create a MySQL database in plesk, you have to manually run the OLD_PASSWORD() query in mysql or phpMyAdmin in order to use that DB with PHP.
What's the best way to get off the old_passwords?
Thanks for your help.
Posted: Sat Feb 25, 2006 2:33 pm
by scott
Thats probably a question better aimed at a DBA, but I suspect the best way to do it is to dump out all your databases. Remove everything from mysql completely (yum remove mysql-server, rm -rf /var/lib/mysql) and then reinstall with mysql 4.1, and re-import all your data.
Thats the lazy way to do it, I suspect you could probably just redo the mysql database as well.
Posted: Mon Feb 27, 2006 2:47 pm
by acidbox
I think there has to be an easier way to do that. To me, that doesn't seem feasable on a production server.
Posted: Mon Feb 27, 2006 9:11 pm
by scott
Yeah like I said, thats the lazy way. Its probably not the right way, but its definitely the one that involves the least amount of time.