Pooler error

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

Moderators: Developers, Moderators

Post Reply
dhd81
Posts: 29
Joined: Mon Oct 24, 2005 8:32 pm

Pooler error

Post by dhd81 »

I get following error when running below script


C:\>C:\php\php.exe C:\Apache\Apache2\htdocs\cacti\poller.php

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339

Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using
password: YES) in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.i
nc.php on line 339
<br>Cannot connect to MySQL server on 'localhost'. Please make sure you have spe
cified a valid MySQL database name in 'include/config.php'.


please assist
windsor
Posts: 24
Joined: Fri May 07, 2004 5:26 pm
Location: Texas!

Post by windsor »

I'll ask the obvious, at least. :)

Did you create the cactiuser account inside of mysql?

http://www.cacti.net/downloads/docs/htm ... ndows.html
7 Optional: Create a MySQL username and password for Cacti.

shell> mysql --user=root --password mysql
mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
mysql> flush privileges;
(IMO, not optional)
dhd81
Posts: 29
Joined: Mon Oct 24, 2005 8:32 pm

Post by dhd81 »

thanks windsor i created user in cacti now i get the ffg error


C:\>C:\php\php.exe C:\Apache\Apache2\htdocs\cacti\poller.php

Warning: array_merge(): Argument #2 is not an array in C:\Apache\Apache2\htdocs\
cacti\poller.php on line 64

Warning: Invalid argument supplied for foreach() in C:\Apache\Apache2\htdocs\cac
ti\poller.php on line 123
'-' is not recognized as an internal or external command,
operable program or batch file.
10/26/2005 02:33:02 AM - SYSTEM STATS: Time:0.0953 Method:cmd.php Processes:1 Th
reads:N/A Hosts:0 HostsPerProcess:0 DataSources: RRDsProcessed:0

and when i try to open http://localhost/cacti/
i get this error: Fatal error: Call to undefined function mysql_connect() in C:\Apache\Apache2\htdocs\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 338


please suggest wat shuld i do next

thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) state what versions you're running.
2) read my updated install guide and pay attention to step #6 for MySQL.
dhd81
Posts: 29
Joined: Mon Oct 24, 2005 8:32 pm

Post by dhd81 »

Hello guys,

Thanks for your help my cacti is up and running... I just have to learn now how to use cacti to create graphs...

thanks alot
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests