2 layer Jan 12, 2005 04:57

do any other php-scripts using mysql work?
sadly I have no PHP scripts to test with beyond b2evolution and no avaialble work time to learn PHP and how to program PHP to access MySQL.
We were hoping the two would work together fine but sadly this hasn't been the case. :(
the file, in the b2evolution install directory phpinfo.php does run fine though. ;)
I tried a different blog software that uses PHP and mySQL as a test. WorldPress also had the same problems as I had with b2evolution when it came to talking to MySQL.
any suggestions how to work around this problem of getting PHP and MySQL talking properly so I can use b2evolution?
Best guess (since this happened to me ;):
You have a recent MySQL + PHP 4. MySQL has a new password format which older PHP's don't understand. You need to set up a user specifically for b2evolution, and use the OLD_PASSWORD() function:
grant all privileges on b2evolution.* for b2@localhost;
set password for b2@localhost = OLD_PASSWORD('pwd');
...replacing 'pwd' with your password.
Well, I think since this has happened to me before is that your problem is two fold. If you want to still use PHP5, it's perfectly fine. All you have to do is make sure that your PHP is calling up MySQL as a module because beginning with PHP5, MySQL isn't automatically called up. To do this, all you have to do is make sure the php_mysql.dll is in the root folder I believe and then you uncomment the php_mysql.dll in the php.ini file.
For the MySQL problem. My guess is that exactly what fumanchu said. Sorta... His explanation of how to solve it is right, the problem with it though is not PHP though. It's MySQL since I believe the algorithm (correct if you guys know I'm wrong) for the way the old password is stored in an old table is different than in a new table. This is caused if you're upgrading from an older version of MySQL. Give that a shot and tell us how it goes!
Where does php_mysql.dll reside and which root to I copy it too?
Then uncoment php_mysql.dll php.ini in C/windows correct?
hie,
i have the same problem...
i have:
MySQL 4.1.8
Abyss 2 Beta3
PHP 5.0.3
Win XP SP2
anyone can help ?