Fatal error:...

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

Moderators: Developers, Moderators

Post Reply
shaft
Posts: 1
Joined: Mon Aug 02, 2004 6:19 pm

Fatal error:...

Post by shaft »

I m getting Fatal error: Call to undefined function: mysql_connect() in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 320

Ive double checked the config, permissions, db user/pass etc...
I dont know what exactly is wrong. Ive look at line 320 and dont see where its leading too.

Can anyone point me in the right direction?
User avatar
jshanley
Posts: 11
Joined: Fri Jul 30, 2004 7:39 pm

Error

Post by jshanley »

a) You did not configure PHP with MySQL support, or
b) You tried to configure it but it couldn't find necessary files so skipped it, or
c) You configured PHP with MySQL support as a DSO but you didn't load the DSO in your php.ini config file, or
d) You added the MySQL DSO to the php.ini config, but PHP is not looking in that location for the php.ini file.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

"php -m" should include the MySQL module. If you are using MySQL 4.1, then you are having an "Old Password" support connect problem. If this is the case, please search the message board for configuration instructions.

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?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

If you are using RedHat/Fedora/Mandrake/etc, you will want to install 'php-mysql'.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests