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

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
flipflap
Cacti User
Posts: 142
Joined: Sat Jul 09, 2005 3:13 pm

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

Post by flipflap »

I'm new to cacti please help. what does this error mean?

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

thanks for the help
saveus
Posts: 25
Joined: Sun Jul 10, 2005 5:04 pm

Post by saveus »

try to see if the mysql extentsion is on in your c:\"windows_directory"\ php.ini :
you must remove the ";" before : ";extension=php_mssql.dll"

ps
you must activate too for cacti :
extension=php_snmp.dll
extension=php_sockets.dll
flipflap
Cacti User
Posts: 142
Joined: Sat Jul 09, 2005 3:13 pm

Post by flipflap »

i just performed a "full install" of cacti again. thanks for the help btw. now i have a new problem -- i'm not seeing any graphs :(
jrsparkjr
Posts: 7
Joined: Wed Jul 13, 2005 8:20 am

Post by jrsparkjr »

I have exactly the same error. But your solution doesn't resolved this error.

Do you have an other solution?

thanks.
jrsparkjr
Posts: 7
Joined: Wed Jul 13, 2005 8:20 am

Post by jrsparkjr »

I have exactly the same error. But your solution doesn't resolved this error.

Do you have an other solution?

thanks.
flipflap
Cacti User
Posts: 142
Joined: Sat Jul 09, 2005 3:13 pm

Post by flipflap »

mmmmm... try this --> on the config.php file what's the value of your $database_hostname = field? if it's the ip of your workstation/server change it back to localhost or 127.0.0.1. just a novice advice :wink:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You're not getting graphs probably because cacti hasn't received any valid data to store.

Turn the polling level in cacti to debug for one cycle and paste the output of the log file. If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests