Solved

hi i'm trying to sync to database with a php script but i keep getting "2000: mysqlnd cannot connect to MySQL 4.1+ using old authentication". mysql db is ver 5. what does this error mean?

Posted on 2010-09-20
5
679 Views
Last Modified: 2013-12-12
hi i'm trying to sync to database with a php script but i keep getting "2000: mysqlnd cannot connect to MySQL 4.1+ using old authentication". mysql db is ver 5. what does this error mean?

i got the class from "http://www.phpclasses.org/package/4790-PHP-Synchronize-two-MySQL-databases.html"

 sync.php
 exemple.php
0
Comment
Question by:qvs5010
5 Comments
 
LVL 32

Accepted Solution

by:
DrDamnit earned 250 total points
ID: 33715295
It's not the DB version that matters. It's the client version and the password.

1. Make sure you're using the most recent stable version of PHP, and
2. Reset the password as explained here: http://dev.mysql.com/doc/refman/5.1/en/old-client.html
0
 
LVL 14

Expert Comment

by:ddsh79
ID: 33715305
0
 
LVL 25

Expert Comment

by:madunix
ID: 33715363
The account you are trying to connect with is using an old password hash.. read more inside the link
http://dev.mysql.com/doc/refman/4.1/en/upgrading-from-previous-series.html
http://dev.mysql.com/doc/refman/4.1/en/old-client.html
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 250 total points
ID: 33751835
My favorite hosting company is refusing to upgrade the MySQL software for the authentication even though they have upgraded to MySQL 5.  They say it would 'break too many things'.  So I can't use PHP 5.3 to connect to my database, I have to use PHP 5.2 or lower.
0
 

Author Closing Comment

by:qvs5010
ID: 34092955
65465456165164
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now