[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux Software  |  Linux Installation Support  |  Topic: call to undefined function mysql_connect()
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: call to undefined function mysql_connect()  (Read 587 times)
0 Members and 1 Guest are viewing this topic.
carobee
Linux Noob !
*
Offline Offline

Posts: 22


View Profile
« on: June 06, 2007, 12: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, 05:52:50 AM by carobee » Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #1 on: June 06, 2007, 06: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.
Logged
carobee
Linux Noob !
*
Offline Offline

Posts: 22


View Profile
« Reply #2 on: June 07, 2007, 01: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
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #3 on: June 07, 2007, 03: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, 03:12:21 PM by Ricky » Logged
carobee
Linux Noob !
*
Offline Offline

Posts: 22


View Profile
« Reply #4 on: June 08, 2007, 01:35:07 AM »

no i installed it through source
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
No matching Call Error Linux Development & Programming a_mlt1 0 1238 Last post June 22, 2004, 05:30:58 AM
by a_mlt1
Fatal error: Call to undefined function: mysql_connect() Linux Servers Support jaishal 5 10553 Last post February 04, 2006, 07:19:41 PM
by marklassoff
squid proxy server not function Linux Proxy Server Support mdhanapiah 11 1832 Last post March 02, 2007, 07:08:23 AM
by gauravbajaj
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 11:43:36 AM

Login with username, password and session length
Navigation
Recent Discussions
[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]

[November 13, 2008, 03:28:22 AM]
Members
Total Members: 6227
Latest: karunadct
Stats
Total Posts: 8269
Total Topics: 2253
Online Today: 10
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 10
Total: 10
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc