faqts : Computers : Programming : Languages : PHP : Database Backed Sites : MySQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

17 of 23 people (74%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

What does MySQL Connection Failed: Protocol mismatch mean?

Sep 21st, 1999 20:35
Nathan Wallace, Rasmus Lerdorf, Richard Lynch


The MySQL server you are connecting to is running a newer version of 
MySQL than the client library compiled into your Apache/PHP setup.  You 
need to recompile PHP against the client library that server is using.

This usually occurs when somebody upgrades MySQL, but doesn't recompile 
PHP with the new MySQL headers, or vice versa...

It's also very easy to have two copies of either package and thoroughly
confuse yourself as to which is really getting compiled into PHP, and 
which is actually running.

You're probably going to need to recompile Apache/MySQL/PHP.