Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Fri Oct 31, 2014 2:38 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Fatal error: Call to undefined function mysql_connect() in C
PostPosted: Mon Apr 25, 2005 4:40 am 
Offline

Joined: Wed Apr 13, 2005 8:31 am
Posts: 16
Hello,

Really help me please....
2 weeks I'm working on it and i've always this error :

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

I read all about that on the forum and I dont succeed in starting server...

My configuration is :

- apache_2.0.53-win32-x86-no_ssl
- cacti-0.8.6c
- cacti-cactid-0.8.6d
- mysql-4.1.10a-win32
- php-5.0.4-Win32
- mysql-administrator-1.0.3-alpha-win
- net-snmp-5.2.1-1.win32
- rrdtool-1.0.49-win32-bin

Really thanx for people who can help me


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 25, 2005 8:02 am 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5904
Location: Michigan, USA
Php is missing mysql extention.

I don't know how to install it on windows, anyone else help?

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 2:53 am 
Offline

Joined: Wed Apr 13, 2005 8:31 am
Posts: 16
Php is missing mysql extention.

--->> what do you mean exactly please ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 12:29 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 11382
Location: USA
Did you enter in the user/pw for the mysql database in config.php?

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 2:00 am 
Offline

Joined: Wed Apr 13, 2005 8:31 am
Posts: 16
yes, all files are edited with the good name and password....

That's why I don't understand...

I've done all operations written in the windows help...

Other idea ?

Thanx


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 2:03 am 
Offline

Joined: Wed Apr 13, 2005 8:31 am
Posts: 16
in config.php I have :

$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "192.168.0.2";
$database_username = "login";
$database_password = "password";

is that okay ?

192.168.0.2 is the local ip of the server


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 3:06 am 
Offline

Joined: Wed Apr 13, 2005 8:31 am
Posts: 16
oh and in my browser i enter :

http://localhost/cacti/index.php

is that okay ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 4:27 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14862
Location: MI, USA
We have a new release, please perform the following:

1) install the new release
2) run "php -m" from a command line
3) post the output of that command
4) if it does not include "mysql", then carefully re-read the install manual. You must modify the php.ini file and set the PHPRC environment variable.

TheWitness

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

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 4:29 am 
Offline

Joined: Wed Apr 13, 2005 8:31 am
Posts: 16
okay thanx, i will reinstall with the new release and re post.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 4:37 am 
Offline

Joined: Wed Apr 13, 2005 8:31 am
Posts: 16
I unpack the new version.
Edit config.php

I made http://localhost/cacti/index.php
and i've the same error

The result of php -m is :




Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>php -m
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
iconv
libxml
mysql
odbc
pcre
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
zlib

[Zend Modules]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 5:00 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14862
Location: MI, USA
These are problematic:

Quote:
PHP Warning: Module 'mysql' already loaded in Unknown on line 0


Indicates you are trying to load the extension twice:

Quote:
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)


Indicates that PHP's builtin snmp support can not find the mib files. You should set the MIBDIRS environment variable and then try this again. In order to apply for Apache/IIS, you may have to reboot.

TheWitness

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

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 6:38 am 
Offline

Joined: Wed Apr 13, 2005 8:31 am
Posts: 16
okay thanx I'm going to try


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 7:23 am 
Offline

Joined: Wed Apr 13, 2005 8:31 am
Posts: 16
I start to believe I'm really silly !!!!!

MIBDIRS environment variable is added to windows PATH and with
php -m, i've always the same after a reboot.....

Quote:
Indicates you are trying to load the extension twice:


and how can I load that only one time ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 7:05 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14862
Location: MI, USA
Try creating the following directory: c:\usr\mibs and copying your mibs there. Otherwise, download and install net-snmp per the installation instructions and see if that helps.

Look for extension=mysql.dll more than once in the php.ini file.

TheWitness

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

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: I Have the same eproblem
PostPosted: Fri Apr 29, 2005 4:18 am 
Offline

Joined: Fri Apr 29, 2005 3:33 am
Posts: 3
Hello,

I have the same Problem :

I have made all Steps from the installation in the Cacti-Manual and checked all thinks: php.ini and /include/config.php

Can anyone give me a tip what I have made wrong ?

After the installation I become the following error message on may browser:

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


I am using :

W2k Server ,
IIS5.0,
cacti-0.8.6d,
cacti-cactid-0.8.6e,
mysql-4.1.11,
net-snmp.5.2.1.-1
rdtool-1.0.4.5-win32


C:\>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
iconv
libxml
mysql
odbc
pcre
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
zlib


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group