Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> phpMyAdmin-MySQL Error #1251:client Authentication, Stupid error
Artluo100
post Jun 21 2005, 10:42 PM
Post #1


Member - Active Contributor
Group Icon

Group: Members
Posts: 87
Joined: 8-June 05
Member No.: 5,984



After I installed phpMyAdmin and tried logging in with the root password, I get this :

#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client


I already installed mySQL administrator and enabled old passwords.


Any help would be appreciated.

Oh yeah I have :

mySQL version 4.1.11-nt
mySQL client 5.04
Apache 2.0.54
PHP 4.3.11
phpMyAdmin 2.6.1-pl3

This post has been edited by microscopic^earthling: Jun 22 2005, 05:19 AM
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Jun 22 2005, 04:51 AM
Post #2


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411



Hey,
    [/tab]I had the same problem with MySQL+PHP - and it seems the problem stems from PHP not being compiled with support for the MySQL transactions - that's the only logical explanation I found on the MySQL forums.

[tab]What i did was blindly recompile PHP with --with-mysqli (MySQL interface) option - and that made it work. I'd found out about this partly from PHP & partly from MySQL forums and I'm still looking for a proper clear-cut explanation - but none that I've come across has satisfied me. Try posting the same on the MySQL forums too and see if you get any decent response.

    [/tab]The other fact I know about this error - is that starting from version 4.1.x of MySQL, the password hash that is used for mysql authentication was increased from 16 to 41 bytes. Thus older clients cannot talk to the newer servers because of the disparity in authentication methods. From this I deduced that the version of PHP (both you and me are using) is compiled to support the older authentication protocol and hence cannot converse with mysql servers starting from 4.1

[tab]There's an alternate fix for this - if you don't want to go into the hassle of recompiling php with the new mysql client libraries. Find out your my.cnf - MySQL configuration file and under the [mysqld] section add the statement: old-passwords - and then restart the MySQL server. This will make it fall back to the older 16-byte authentication method and PHP will work fine with it.

Hope this helps to some extent.
Regards,
m^e
Go to the top of the page
 
+Quote Post
chaosx2x
post Jun 29 2005, 01:12 PM
Post #3


Advanced Member
Group Icon

Group: Members
Posts: 109
Joined: 14-March 05
Member No.: 3,046



i've a similar problem, but ii don't give me any errors, i put my root password but it ask me in loop user e pass sad.gif
Go to the top of the page
 
+Quote Post
Casanova
post Jul 4 2005, 07:30 AM
Post #4


Advanced Member
Group Icon

Group: Members
Posts: 133
Joined: 31-May 05
Member No.: 5,643



well i too faced same problem..! And i visited mysql forums.! Thats nothing but Old Lib files in Mysql..! Upgrade the library Files there and it will work fine.!

Else shortcut method is In your mysql administrator Remove ur passwords and save.!

Then You wont ever get that or any other error.!

And remember while logging in phpmyadmin

login-root
password-{leave blank}
And enter..!

Also configure your scripts without password.. biggrin.gif Hope this works out for you!
Go to the top of the page
 
+Quote Post
fabiocardoso
post Aug 16 2005, 02:33 PM
Post #5


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 25
Joined: 7-August 05
Member No.: 7,682



Add a line "php_mysqli.dll" on PHP.INI to load the lib correct.
Go to the top of the page
 
+Quote Post
Klass
post Aug 16 2005, 02:58 PM
Post #6


Klassified
Group Icon

Group: Members
Posts: 156
Joined: 7-June 05
From: Klass-World
Member No.: 5,936



QUOTE(fabiocardoso @ Aug 16 2005, 11:33 AM)
Add a line "php_mysqli.dll" on PHP.INI to load the lib correct.
*


that will not fix the issue,

1. Download the Full PHP zip:
http://us3.php.net/get/php-5.0.4-Win32.zip/from/a/mirror
2. Extract to your desktop
3. upload the ext directory to your PHP directory
i.e. C:\PHP\
4. Copy the libmysql.dll from zip above & paste to C:\PHP\ext & C:\WINNT\System32 or C:\Windows\System32

C:\ is the default location if you have changed this on the installation then you need to put them in the correct places.

5. Edit php.ini
Find:
CODE
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/"

Replace with:
CODE
; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:\PHP\ext"

Find:
CODE
;extension=php_mysql.dll

Replace with:
CODE
extension=php_mysql.dll
Go to the top of the page
 
+Quote Post
DivineZero
post Sep 1 2005, 08:09 PM
Post #7


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 9
Joined: 1-September 05
Member No.: 8,250



Maybe you dont have acess rights to do so?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. MySQL - Trouble With Bulk Insert Statements(3)
  2. MySQL Realtime Replication(4)
  3. Recover Tables From A MySQL .frm File(8)
  4. Mirror My MySQL Database To Another Mysql Server(4)
  5. How To Connect MySQL With Flash?(8)
  6. MySQL Output Database Question(18)
  7. MySQL, Multiple Tables(24)
  8. Navcat For MySQL(9)
  9. Permission Problem With Mysql Database Creation(8)
  10. Mysql And Php(15)
  11. Login System Using A Mysql Db(5)
  12. Oracle Vs. Mysql Vs. Postgresql(9)
  13. Subqueries In Mysql(1)
  14. Apache Php With Mysql On Windows [solved](9)
  15. Not Understanding Mysql(4)
  1. Mysql Script Help(3)
  2. Mysql - So Hard(14)
  3. Mysql Problem(1)
  4. Sun Bought Mysql(6)
  5. Mysql Backup With Another Address?(4)
  6. I Have An Error With My Mysql Connection(7)
  7. Mysql And User File_priv(0)
  8. Mysql Database Management(1)
  9. Mysql Database Entry By Excel Sheets(2)
  10. Mysql On Computer(9)
  11. Any Website Provide Free Host Mysql Host?(4)
  12. Mysql Multiple Tables(1)
  13. Mysql Overhead(3)


 



- Lo-Fi Version Time is now: 16th October 2008 - 01:36 AM