Fatal error: Call to undefined function mysql_connect() in C:\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 338.
Although I have found this topic already many times on the forum and reviewed the correction steps, I cannot get this resolved. All info on used software versions on Windows XP and config-files is in attached info.txt.
Please Help, as this has cost me already a few days to try getting it all to work..
Thanks
Once again.... the adodb-mysql.inc.php problem
Moderators: Developers, Moderators
Once again.... the adodb-mysql.inc.php problem
- Attachments
-
- info.txt
- (999 Bytes) Downloaded 151 times
1) Are you able to manually connect to your mysql database via the mysql cli?
2) Did you add the cacti username/password to your config.ph for cacti?
2) Did you add the cacti username/password to your config.ph for cacti?
| 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 |
The entries I made in the \cacti\include\config.php:
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "sbews00671";
$database_username = "cacti";
$database_password = "cacti";
As for the hostname, I tried localhost, I tried the IP-address...
Connecting to Mysql via CLI is no problem:
C:\mysql\bin>mysql --user cacti --password=cacti cacti
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 40 to server version: 4.1.14-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
When I run the poller as a scheduled job, I get:
C:/net-snmp/etc/snmp/snmp.conf: line 2: Warning: Unknown token: persistentDir.
C:/net-snmp/etc/snmp/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.
There are no items in your poller cache or polling is disabled. Make sure you have at least one data source created. If you do, go to 'Utilities', and select 'Clear Poller Cache'.[/b]
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "sbews00671";
$database_username = "cacti";
$database_password = "cacti";
As for the hostname, I tried localhost, I tried the IP-address...
Connecting to Mysql via CLI is no problem:
C:\mysql\bin>mysql --user cacti --password=cacti cacti
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 40 to server version: 4.1.14-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
When I run the poller as a scheduled job, I get:
C:/net-snmp/etc/snmp/snmp.conf: line 2: Warning: Unknown token: persistentDir.
C:/net-snmp/etc/snmp/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.
There are no items in your poller cache or polling is disabled. Make sure you have at least one data source created. If you do, go to 'Utilities', and select 'Clear Poller Cache'.[/b]
Last edited by Herman on Thu Sep 08, 2005 2:40 am, edited 1 time in total.
I thought PHP 5.x had support for the new MySQL passwords, but give the old client trick a shot.
| 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 |
I tried first with the actual hostname, but that seems to be a problem. When I used 'localhost', it worked.
mysql> set password for
-> 'cacti'@'sbews00671' = OLD_PASSWORD('cacti');
ERROR 1133 (42000): Can't find any matching row in the user table
mysql> set password for
-> 'cacti'@'localhost' = OLD_PASSWORD('cacti');
Query OK, 0 rows affected (0.02 sec)
mysql> flush privileges;µ
Query OK, 0 rows affected (0.01 sec)
the problem still remains however.
mysql> set password for
-> 'cacti'@'sbews00671' = OLD_PASSWORD('cacti');
ERROR 1133 (42000): Can't find any matching row in the user table
mysql> set password for
-> 'cacti'@'localhost' = OLD_PASSWORD('cacti');
Query OK, 0 rows affected (0.02 sec)
mysql> flush privileges;µ
Query OK, 0 rows affected (0.01 sec)
the problem still remains however.
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I use php 5.0.4 in production and have for several months with no issues.
TheWitness
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?
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?
Who is online
Users browsing this forum: No registered users and 3 guests