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
684 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

752 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