Call to undefined function: mysql_connect()

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
neophyte
Posts: 3
Joined: Sat Feb 12, 2005 3:58 pm

Call to undefined function: mysql_connect()

Post by neophyte »

Hi,

I'm running Debian Woody. Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-2 and cacti-0.8.6c and mysql Ver 12.22 Distrib 4.0.23, for pc-linux-gnu (i386)

I was getting the "Call to undefined function: mysql_connect() error" when i surfed to my /cacti directory.

I quickly fixed it by uncommenting extension=mysql.so in my php.ini file.

So that solved that problem, i configged my data sources, created graphs & placed them on a tree. I was surprised to find that the graph images were broken.

The problem is that the .rrd files aren't being created by poller.php. If i try to run poller.php manually i get the same mysql_connect error:

>php4 /home/www/cacti/poller.php

Fatal error: Call to undefined function: mysql_connect() in /home/www/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339

The same error which i thought i solved earlier.

If i make a php script with phpinfo() it states that mysql is supported:

supported databases MySQL

Anyone know what else could be wrong?

/update/ -> added sql version :)
Last edited by neophyte on Sat Feb 12, 2005 4:24 pm, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What version of MySQL?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
neophyte
Posts: 3
Joined: Sat Feb 12, 2005 3:58 pm

Post by neophyte »

google really is your friend :)

i forgot to add the "extension=mysql.so" line to the /etc/php4/cli/php.ini :)

Problem Solved, topic may be closed
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests