NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] MySQL called from php...


Joined: 15 Sep 2004
Posts: 9
Reply with quote
Hello, here's the same topic AGAIN.

I'm having problems connecting to a new MySQL database I've created on a seperate server.

I've read the following topics:
need-help-connecting-to-mysql-t2378.html
(and replaced the libmysql.dll successfully used by the MySQL Admin tools into the phped directory)
+
libmysql-dll-upgrade-t3094.html
+
the old passwords directive in the my.ini
(and added this directive in the both of my.ini files)

Plus I've installed both mySQL server 5.0 and 4.1 just to see if reverting to an older DB server helped. (I think this new password authentication was introduced in 4.1 so it does not surprise that reverting to 4.1 does not work. I think I would have to go back to 4.0...)

The behaviour I have is the following:
if I use the helpful DB Client tab in PHPEd, I can connect to either one of the DB servers
if I use MySQL Query Browser, I can connect to either one of the DB servers

But I cannot connect to the database if I try to run and/or debug my PHP script, getting the following error:
: Error mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client

I understand this should be fixed by upgrading libmySQL.dll in the <installation directory>/phped but unfortunately it is not.

Any help would be GREATLY appreciated.

Slawek
View user's profileFind all posts by SlawekSend private message
Veteran

Joined: 06 Mar 2007
Posts: 158
Location: Poland
Reply with quote
Slawek, in this situation You must use "OLD_PASSWORD" encryption for user's password.

_________________
ML
View user's profileFind all posts by introSend private messageVisit poster's website


Joined: 15 Sep 2004
Posts: 9
Reply with quote
Ok, do you mean in my.ini on the server? I already added

#Use old password encryption method (needed for 4.0 and older clients).
old_passwords

to the end of both (one for each server instance) my.ini

But this did not do anything...
View user's profileFind all posts by SlawekSend private message
Veteran

Joined: 06 Mar 2007
Posts: 158
Location: Poland
Reply with quote
No, No Slawek. Its not a reason from my.ini, not libmysql.dll. The reason is mysql's client (here is mysql extension, right?) which cannot loggin with new encryption of passwords - You must use OLD_PASSWORD for user's account.

_________________
ML
View user's profileFind all posts by introSend private messageVisit poster's website
Veteran

Joined: 06 Mar 2007
Posts: 158
Location: Poland
Reply with quote
Look at it Slawek (are You come from Poland?):

http://dev.mysql.com/doc/refman/5.0/en/old-client.html

_________________
ML
View user's profileFind all posts by introSend private messageVisit poster's website


Joined: 15 Sep 2004
Posts: 9
Reply with quote
OK, that did the trick!! Excellent, thank you very much! I updated the passwords manually from the mysql command line and saw that the password for my user was changed then I could log in.

Dzieki, intro!

---

Tak jestem z Polski ale mieszkam w Kanadzie. Dziekuje z pomoc. Czolem!
View user's profileFind all posts by SlawekSend private message
Veteran

Joined: 06 Mar 2007
Posts: 158
Location: Poland
Reply with quote
Nice I could help. Smile

---
A ja wciaz w Legnicy wegetuje (jeszcze magisterke musze skonczyc, a potem sie zobaczy) - no nie ma za co dziekowac, Pozdrawiam! Smile

_________________
ML
View user's profileFind all posts by introSend private messageVisit poster's website
[resolved] MySQL called from php...
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic