Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux Software => Linux Installation Support => Topic started by: carobee on June 06, 2007, 04:39:38 AM

Title: call to undefined function mysql_connect()
Post by: carobee on June 06, 2007, 04:39:38 AM
im new to linux.i installed apache 2.xx and php 5.2.2. now when im trying to connect mysql through php,message like "fatal error:call to undefined function mysql_connect()" is displayed.

i even checked the php.ini file and enabled the mysqll.dll nd mysql.so libraries, but still the same problem.
can anyone help?
Title: Re: call to undefined function mysql_connect()
Post by: Ricky on June 06, 2007, 10:11:48 AM
Give me output of yoru phpinfo();

And if it is Linux OS then no need mysqll.dll things , that is meant for windows.
As you said that you have enabled extension= mysql.so

then.. you might need to reinstall php with mysql support enabled.
Title: Re: call to undefined function mysql_connect()
Post by: carobee on June 07, 2007, 05:53:19 AM
thnks
i have tried configuring php with mysql support,then the error messages "cannot find sql header files.mysql client is not bundled anymore". i think i will shift to some older version of php like 4.4.3..do i need clening up of php 5.2.2? if yes then how do i do it?

my sql was already there in my linux os.maybe it was shipped along wiith linux
Title: Re: call to undefined function mysql_connect()
Post by: Ricky on June 07, 2007, 07:10:06 PM
you have not mentioned that how you have installed apache & php, is it rpm based or binary based ?

removing is as simple as deleting all php5 files .. & instances to it.
& if rpm then its easy to remove rpm ,
ie.
rpm -e <package name>
Title: Re: call to undefined function mysql_connect()
Post by: carobee on June 08, 2007, 05:35:07 AM
no i installed it through source