Fatal error: Call to undefined function mysql_connect() in C

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Joe H.
Posts: 5
Joined: Mon Oct 11, 2004 12:29 am

Fatal error: Call to undefined function mysql_connect() in C

Post by Joe H. »

I have just installed cacti for the first time on a Windows 2003 server I am using cacti-0.8.6b, with Apache 2, MySql 5.0, rrdtool 1.048, php5.02, and net-snmp everything required to run cacti, but when I open my web browser and go to x.x.x.x/cacti I get this error

Fatal error: Call to undefined function mysql_connect() in C:\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 323

I have double and triple checked my installation I have searched the web for an answer and this forum as well. I will try the good old fashion reboot for now. If someone could help me with this it would be AWESOME!!!!

The extension=mysql.dll is not commented Which is all the info I could get from the Internet.

If you need any other info please let me Know !!
Newuser

Re:

Post by Newuser »

Did you change c:/Apache2/htdocs/cacti/include/config.php file according to your username and password in Mysql. I had the same kind of problem while installing Cacti and changing config.php file solved the problem. Hope this helps!
Joe H.
Posts: 5
Joined: Mon Oct 11, 2004 12:29 am

Post by Joe H. »

I have changed the config.php file to root and the password I chose. I have also tried the standard config and also allowed the user cactiuser full access to the Db as well. neither worked.
Joe H.
Posts: 5
Joined: Mon Oct 11, 2004 12:29 am

Post by Joe H. »

I have also gone as far as making root the user with the root password for the cacti database
Boots1

Post by Boots1 »

Hi Joe,

I get the same error msg following the install guide for windows.

Cheers

Boots
Joe H.
Posts: 5
Joined: Mon Oct 11, 2004 12:29 am

Post by Joe H. »

Boots Have you figured it out ? I have tried to replace the file I am using root as the user to open Mysql still nothing I haven't recieved much in the way of feed back on it either.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Joe H.,

Edit php.ini in the c:\php directory and verify that the mysql extension is uncommented. Also verify that the PHPRC environment variable points to the c:\php directory. And also verify that there is no php.ini file in either c:\windows or c:\winnt directories.

If you find any of the following true, make sure you reboot after you make the changes before proceeding.

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?
Joe H.
Posts: 5
Joined: Mon Oct 11, 2004 12:29 am

Post by Joe H. »

Witness,
I double checked everything you told me to the only thing that was wrong is that i had a php.ini in my windows directory So i deleted it, reboote, but i still get the same error.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest