[Sussex] Getting PHP to work with MySQL

Paul Turner paul.turner at rentokil-initial.com
Tue Feb 5 16:20:47 UTC 2008


I had a similar issue when configuring a Centos server.

This was resolved by:
	
	yum install php-mysql 


I also installed the following (not needed for MySQL):

	yum install php-gd 
	yum install php-mbstring

As Fedora & Centos are both part of the RedHat family maybe this will work
for you too.

Regards, Paul.

-----Original Message-----
From: sussex-bounces at mailman.lug.org.uk
[mailto:sussex-bounces at mailman.lug.org.uk] On Behalf Of Brendan Whelan
Sent: 05 Feb 2008 16:12
To: Simon Dawson; Sussex LUG
Subject: Re: [Sussex] Getting PHP to work with MySQL

Simon, you are right it should be mysql_connect() - I simply memorised 
the message one one machine and then (incorrectly) type it into my email 
message. So the basic problem still exists. Brendan

Simon Dawson wrote:
> Very quickly - don't know whether it is a typo on your part but it should
be 
> mysql_connect not mysql-connect.
>
> Does that help?
>
> regards
> Simon
>
> On Tuesday 05 February 2008 15:56, Brendan Whelan wrote:
>   
>> I have just installed a copy of Fedora Core 6 and I'm having trouble
>> getting PHP programs to connect to a MySQL database.
>> Individually, the PHP and MySQL both work but when I try to connect from
>> a PHP program to MySQL I get "Call t undefined function
>> mysql-connect()".  The mysql connection looks to be configured in
>> php.ini. The log files aren't showing anything useful. I tried did a
>> search in yum for php-mysql and then ran "yum install php-mysql.i386",
>> which gave "nothing to do".  A mysql.so file resides in
>> /usr/lib/php/modules/
>> I have exhausted what I can think of doing - any suggestions. Thanks,
>> Brendan
>>
>> __
>> Sussex mailing list
>> Sussex at mailman.lug.org.uk
>> E-mail Address: sussex at mailman.lug.org.uk
>> Sussex LUG Website: http://www.sussex.lug.org.uk/
>> https://mailman.lug.org.uk/mailman/listinfo/sussex
>>     
>
>   


__ 
Sussex mailing list
Sussex at mailman.lug.org.uk
E-mail Address: sussex at mailman.lug.org.uk
Sussex LUG Website: http://www.sussex.lug.org.uk/
https://mailman.lug.org.uk/mailman/listinfo/sussex





More information about the Sussex mailing list