Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all articles
Browse latest Browse all 7239

error message running query using PDO (6 replies)

$
0
0
I've got a google gadget that queries a mysql database and it works fine when I run it against a version 5.1.42 database.

But when I run it against a version 5.0.84 database, I get the error message:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using old authentication' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mcgoogle\init2.php:21 Stack trace: #0 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mcgoogle\init2.php(21): PDO->__construct('mysql:host=test...', 'root', 'madmax1.') #1 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mcgoogle\complete2.php(2): require_once('C:\Program File...') #2 {main} thrown in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mcgoogle\init2.php on line 21

Viewing all articles
Browse latest Browse all 7239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>