The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
MySQL article - Sun and MySQL: How It Stacks Up for Developers iBot UNIX and Linux RSS News 0 02-28-2008 08:20 PM
MySQL conflicts with mysql-3.23.58-16.RHEL3.1 johnveslin Linux 2 07-17-2007 03:49 AM
mysql would not start: missing mysql.sock xnightcrawl UNIX for Advanced & Expert Users 2 05-26-2006 07:06 AM
PHP-MySQL: POST issue adrious UNIX for Dummies Questions & Answers 0 06-30-2004 09:36 AM
MySQL problem >> missing mysql.sock _hp_ UNIX for Advanced & Expert Users 8 11-03-2002 11:44 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-19-2003
Registered User
 

Join Date: Nov 2003
Posts: 10
mysql issue

I have a lot of files getting this on a new install of phpmysql 4.3.4
any ideas what would be causing this...
Fatal error: Call to undefined function: mysql_connect() in /home/httpd/vhosts/ucandevelopments.com/httpdocs/includes/functions/database.php on line 19
Forum Sponsor
  #2  
Old 11-19-2003
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,477
Your PHP is not compiled with MySQL functions enabled. See if there are some RPM packages with the missing libraries. For example, php-mysql (I don't know the exact name)
  #3  
Old 11-20-2003
Registered User
 

Join Date: Nov 2003
Posts: 10
i did a search and my sql is on the server how do i enable it
  #4  
Old 11-20-2003
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
Mysql may be on the box, but is php compiled to use mysql?

If you look in your apache libexec directory (or whereever your php module is living (httpd.conf)) - do the following:

dump -C libphp4.so | grep -i mysql

If you don't see any mysql functions, your PHP wasn't compiled with mysql support (ie

In PHP src directory (php-4.0.3pl1/)

# ./configure --with-mysql \
--with-xml \
--enable-track-vars \
--with-apache=../apache_1.3.14 \

# make
# make install

Cheers,

Keith
  #5  
Old 11-20-2003
Registered User
 

Join Date: Nov 2003
Posts: 10
it is i got it working when i installed i was upgrading and forgot to remove the old php.ini so it was trying to use that as soon as i swithed and rebooted it worked
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0