phpinfo() Posted July 26, 2009 Share Posted July 26, 2009 This is a new virtual server, where I have installed LAMP. When I bring up my website that is being hosted, I get this error: Warning: mysql_pconnect() [function.mysql-pconnect]: Headers and client library minor version mismatch. Headers:40120 Library:50136 in Any ideas of what has gone wrong? Thanks! Link to comment https://forums.phpfreaks.com/topic/167514-solved-headers-and-client-library-minor-version-mismatch-need-help/ Share on other sites More sharing options...
phpinfo() Posted July 27, 2009 Author Share Posted July 27, 2009 When I rpm -qa | grep -i '^mysql-' is shows: MySQL-devel-community-5.1.36-0.rhel4 MySQL-client-community-5.1.36-0.rhel4 MySQL-shared-community-5.1.36-0.rhel4 MySQL-server-community-5.1.36-0.rhel4 The headers and libraries are installed. I can't figure out why I am receiving the error. Is this a PHP install error? Or is it MySQL? I have tried re-installing MySQL multiple times via: rpm -qa | grep -i '^mysql-' MySQL-devel-community-5.1.36-0.rhel4 MySQL-client-community-5.1.36-0.rhel4 MySQL-shared-community-5.1.36-0.rhel4 MySQL-server-community-5.1.36-0.rhel4 rpm --nodeps -ev MySQL-shared-community-5.1.36-0.rhel4 rpm --nodeps -ev MySQL-server-community-5.1.36-0.rhel4 rpm --nodeps -ev MySQL-client-community-5.1.36-0.rhel4 rpm --nodeps -ev MySQL-devel-community-5.1.36-0.rhel4 wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.36-0.rhel4.i386.rpm/from/http://opensource.become.com/mysql/ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-community-5.1.36-0.rhel4.i386.rpm/from/http://opensource.become.com/mysql/ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-shared-community-5.1.36-0.rhel4.i386.rpm/from/http://opensource.become.com/mysql/ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-devel-community-5.1.36-0.rhel4.i386.rpm/from/http://opensource.become.com/mysql/ rpm -Uvh MySQL-server-community-5.1.36-0.rhel4.i386.rpm rpm -Uvh MySQL-client-community-5.1.36-0.rhel4.i386.rpm rpm -Uvh MySQL-shared-community-5.1.36-0.rhel4.i386.rpm rpm -Uvh MySQL-devel-community-5.1.36-0.rhel4.i386.rpm Link to comment https://forums.phpfreaks.com/topic/167514-solved-headers-and-client-library-minor-version-mismatch-need-help/#findComment-883605 Share on other sites More sharing options...
phpinfo() Posted July 27, 2009 Author Share Posted July 27, 2009 Figured it out. It was a PHP issue. I did yum remove php and deleted all the PHP 4 files. Then did a fresh PHP 5 ./configure install and everything works well. Link to comment https://forums.phpfreaks.com/topic/167514-solved-headers-and-client-library-minor-version-mismatch-need-help/#findComment-884361 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.