November 24, 2024, 07:30:45 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: call to undefined function mysql_connect()  (Read 7400 times)

Offline carobee

  • Linux Noob !
  • *
  • Posts: 22
call to undefined function mysql_connect()
« 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?
« Last Edit: June 06, 2007, 09:52:50 AM by carobee »

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: call to undefined function mysql_connect()
« Reply #1 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.

Offline carobee

  • Linux Noob !
  • *
  • Posts: 22
Re: call to undefined function mysql_connect()
« Reply #2 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: call to undefined function mysql_connect()
« Reply #3 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>
« Last Edit: June 07, 2007, 07:12:21 PM by Ricky »

Offline carobee

  • Linux Noob !
  • *
  • Posts: 22
Re: call to undefined function mysql_connect()
« Reply #4 on: June 08, 2007, 05:35:07 AM »
no i installed it through source