Tim356 Posted June 23, 2009 Share Posted June 23, 2009 I have mysql and php 5.1 running on my CentOS server, however mysql extensions don't seem to be working - I get a 'call to undefined function' when running any mysql code. How can I fix this? Link to comment https://forums.phpfreaks.com/topic/163334-cant-seem-to-get-mysql-extensions-working/ Share on other sites More sharing options...
JonnoTheDev Posted June 23, 2009 Share Posted June 23, 2009 Use yum: yum install php-mysql service httpd restart Link to comment https://forums.phpfreaks.com/topic/163334-cant-seem-to-get-mysql-extensions-working/#findComment-861876 Share on other sites More sharing options...
RRT Posted June 29, 2009 Share Posted June 29, 2009 Did this fix your issue? Would I do the same thing for Postgres, such as this: yum install php-postgres Any ideas? Link to comment https://forums.phpfreaks.com/topic/163334-cant-seem-to-get-mysql-extensions-working/#findComment-865766 Share on other sites More sharing options...
JonnoTheDev Posted June 30, 2009 Share Posted June 30, 2009 yum install php-pgsql Link to comment https://forums.phpfreaks.com/topic/163334-cant-seem-to-get-mysql-extensions-working/#findComment-866227 Share on other sites More sharing options...
RRT Posted July 1, 2009 Share Posted July 1, 2009 When I try that I guess this: Setting up Install Process Setting up repositories Cannot find a valid baseurl for repo: updates-released That is as far as I get. Do I need to run some other command to setup yum first? Link to comment https://forums.phpfreaks.com/topic/163334-cant-seem-to-get-mysql-extensions-working/#findComment-866911 Share on other sites More sharing options...
JonnoTheDev Posted July 1, 2009 Share Posted July 1, 2009 You need to update your yum conf http://sial.org/howto/yum/ Link to comment https://forums.phpfreaks.com/topic/163334-cant-seem-to-get-mysql-extensions-working/#findComment-866981 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.