MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 7th, 2004, 12:07 PM
myleslawrence myleslawrence is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 6 myleslawrence User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 28 sec
Reputation Power: 0
Call to undefined function: mysql_connect()

I have mysql 4.18 running on redhat 9 and i can add databases and do all the standard mysql> operations but cannot connect through a php client. I've also installed the client api rpm but always get Call to undefined function: mysql_connect() when trying to connect. PHP is installed and is running fine. What did I miss - help please.

Reply With Quote
  #2  
Old June 7th, 2004, 12:31 PM
Guelphdad's Avatar
Guelphdad Guelphdad is offline
Hockey face
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Nov 2001
Location: Guelph Canada
Posts: 7,543 Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level)Guelphdad User rank is General 1st Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 3 Days 6 h 2 m 53 sec
Reputation Power: 1040
Best to post this on the PHP part of the site since this is not a MySQL question per se.

Reply With Quote
  #3  
Old June 7th, 2004, 12:40 PM
myleslawrence myleslawrence is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 6 myleslawrence User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 28 sec
Reputation Power: 0
Call to undefined function: mysql_connect()

Thanks for the reply. This is not a php problem per se. It's a mysql install and/or configuration problem. My php is working. I'm just tryig to call the standard mysql_connect APi and it cannot be found. I don't understand why.

Reply With Quote
  #4  
Old June 7th, 2004, 01:06 PM
Ucht's Avatar
Ucht Ucht is offline
This is only a test
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Off the air
Posts: 2,893 Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 5 Days 20 h 1 m 43 sec
Reputation Power: 148
This is a PHP issue. There's something in your configuration that's not giving PHP access to those functions. What version of PHP are you running?
__________________
"Not to offend our Swedish listeners ... if we have any, that is—"
"—But your team's rubbish."
(Sun webcast, Sweden vs. Paraguay)

Who needs corporate radio?
WeFunkRadio.com | Global Pop Conspiracy | Radio Paradise | SomaFM | The Classic Soul Network | Boot Liquor | WFMU Freeform Radio

Reply With Quote
  #5  
Old June 7th, 2004, 01:18 PM
myleslawrence myleslawrence is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 6 myleslawrence User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 28 sec
Reputation Power: 0
Call to undefined function: mysql_connect()

Thanks. This is the default php with rehat 9 and appears to be 4.2.2. Are there config or ini files I'm overlooking? I was focusing on mysql configuration problems.

Reply With Quote
  #6  
Old June 7th, 2004, 01:52 PM
Ucht's Avatar
Ucht Ucht is offline
This is only a test
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Off the air
Posts: 2,893 Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 5 Days 20 h 1 m 43 sec
Reputation Power: 148
If it's 4.2.2, the functions should be built in. I've also never messed with configuring PHP on redhat, so I don't know how helpful I can be. Try doing a phpinfo() and see if you're running with --with-msyql listed in the configure command.

Reply With Quote
  #7  
Old June 7th, 2004, 03:48 PM
myleslawrence myleslawrence is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 6 myleslawrence User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 28 sec
Reputation Power: 0
Call to undefined function: mysql_connect()

Yes, --with mysql is in the phpinfo configure info. This can't be that hard. Any others ideas?

Reply With Quote
  #8  
Old June 7th, 2004, 04:41 PM
Ucht's Avatar
Ucht Ucht is offline
This is only a test
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Off the air
Posts: 2,893 Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level)Ucht User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 5 Days 20 h 1 m 43 sec
Reputation Power: 148
You're probably missing a module (php-mysql.rpm or some filename like that), then. It may be on one of your RH install discs, or you can get it from their site.

Reply With Quote
  #9  
Old June 7th, 2004, 05:05 PM
myleslawrence myleslawrence is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 6 myleslawrence User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 28 sec
Reputation Power: 0
Cool Call to undefined function: mysql_connect()

You were right n the money - works now (actually all the php-mysql apps now work) - thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Call to undefined function: mysql_connect()


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT