[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  |  Network Troublshooting  |  Linux Servers Support  |  Topic: Fatal error: 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: Fatal error: Call to undefined function: mysql_connect()  (Read 10239 times)
0 Members and 1 Guest are viewing this topic.
jaishal
Linux Noob !
*
Offline Offline

Posts: 19


View Profile
« on: October 16, 2004, 02:57:53 AM »

hey all
i m facing this problem
can anyone help me plz

Fatal error: Call to undefined function: mysql_connect()

in response of this  i tried to cnfigure the mysql again through the command

./configure --with-mysql \


it shows that

-bash: ./configure: No such file or directory

wat should i do.....HuhHuh can any one help me plz Sad
Logged
jaishal
Linux Noob !
*
Offline Offline

Posts: 19


View Profile
« Reply #1 on: October 18, 2004, 03:08:41 AM »

no one here to help me out .......HuhHuh :shock:

plz help me ./configure is not working and shows the error

-bash: ./configure: No such file or directory

plz help me ...i found that mysql is install but not configured and i want to configure mysql in redhat 8
help me plz ..........its very urgent...... hope the masters come to help me... and how do i solbe the problem.?? :cry:
Logged
dragoncity99
LST CareTaker
Experienced
*****
Offline Offline

Posts: 494


View Profile
« Reply #2 on: October 18, 2004, 06:53:34 AM »

THat is not the command to use when u configure mysql.

./configure is used to configure ur c scripts before compiling ur programs.

AND

It doesn't work coz u must be in the source folder of mysql  to do that.

If u have installed mysql,  make sure u started the service. Else it wont work.

Now, to solve ur problem.

1. Check ur mysql service is running. To do that, type:

     service mysqld status
---> U should see mysqld is running or u can start it by typing;
        "service mysqld start"

2. If it's started, type "mysql" and u will reach the "mysql>" prompt.

U r doing php and i believe ur mysql is not running or there is sth wrong with ur script friend. Wink
Logged
mudface
New Member

Offline Offline

Posts: 2


View Profile
« Reply #3 on: January 04, 2005, 06:49:49 AM »

Hi, i know its my first post, and that this thread has been inactive for a while, and that this problem has probably already been solved but:

I have just installed linux on a server and have got it all working etc etc accept i got that error when running a mysql_connect() function, i have yet to find the exact solution, but what the problem is, is that whe you install php/mysql manualy on a machine you do mysql first then php so that php configures it self to run with that mysql server. The problem with some versions of linux (i am using mandrake 10.1) is that they install php then mysql so php isn't configured to run with mysql. you can tell this if this is your problem by running

<?php
phpinfo();
?>

if there is a section on mysql then this isnt your problem, but if there is not mysql section it isnt set up properly. I am now working on a way to re-install php so it can see mysql.

Hope this helps
Logged
0511_martin
New Member

Offline Offline

Posts: 1


View Profile
« Reply #4 on: June 10, 2005, 05:56:23 AM »

As written before, check phpinfo() for the mysql section. If not present, have a look at your php.ini (find it with `locate php.ini` or try /etc/php4/apache/php.ini)

find the section
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

and uncomment or add:

extension=mysql.so

the same applies for the gd extension (if you would like to use it):
extension=gd.so

restart apache and thats it
Logged
marklassoff
New Member

Offline Offline

Posts: 1


View Profile
« Reply #5 on: February 04, 2006, 07:19:41 PM »

It sounds like you need to install the PHPx-mySQL library for your particular version of PHP.  

The PHP install alone doesn't recognize mySQL commands unless the appropriate library is installed.  You can, however, get into the mySQL command line and create databases, change the, query, etc., however can't from PHP unless you have the library installed.

Mark Lassoff
Web Design, Coding and Training
marklassoff@gmail.com
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 1216 Last post June 22, 2004, 05:30:58 AM
by a_mlt1
X-server fatal error,KDM refused to start General Networking Support in Linux callitdctr 0 1023 Last post July 01, 2005, 02:47:31 AM
by callitdctr
squid proxy server not function Linux Proxy Server Support mdhanapiah 11 1702 Last post March 02, 2007, 07:08:23 AM
by gauravbajaj
call to undefined function mysql_connect() Linux Installation Support carobee 4 552 Last post June 08, 2007, 01:35:07 AM
by carobee
Fatal exception: panic in 5 seconds Linux Kernel bendani 1 468 Last post June 10, 2007, 03:42:24 PM
by Ricky
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 13, 2008, 06:44:19 PM

Login with username, password and session length
Navigation
Recent Discussions
[Today at 03:33:27 PM]

[October 10, 2008, 04:26:36 PM]

[October 10, 2008, 04:25:32 PM]

[October 09, 2008, 05:17:47 PM]

[October 08, 2008, 04:32:08 AM]

[October 07, 2008, 05:16:33 AM]

[October 06, 2008, 03:09:51 AM]

[October 04, 2008, 03:33:03 AM]

[October 03, 2008, 06:21:18 AM]

[October 03, 2008, 05:31:19 AM]
Members
Total Members: 6110
Latest: pc_shinod
Stats
Total Posts: 8207
Total Topics: 2225
Online Today: 12
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 2
Total: 2
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