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
685 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:Dushyant Sharma
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 83

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

ClickHouse in a General Analytical Workload

We have mentioned ClickHouse in some recent posts, where it showed excellent results.

In this article on Experts Exchange, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to implement server side field validation and display customized error messages to the client.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

623 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