help help. have problem when run php poller.php

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
terryood
Posts: 4
Joined: Mon Jun 27, 2005 4:33 am

help help. have problem when run php poller.php

Post by terryood »

when run php poller.php for test.but i get following message:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in /usr/local/cacti-0.8.6e/lib/adodb/drivers/adodb-mysql.inc.php on line 340

<br>Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'


thanks help
pbulteel
Cacti User
Posts: 150
Joined: Fri Sep 05, 2003 9:20 am
Location: London
Contact:

Post by pbulteel »

So - what version of MySQL? And is the information correct in the config.php page of cacti?

If you provide more information it would be easier to troubleshoot. Can you connect to the web interface? Can you connect to the database as the cacti user? Did you already import the cacti.sql? Was this an existing install? All of this would help troubleshoot. =)

-p
uname -a
terryood
Posts: 4
Joined: Mon Jun 27, 2005 4:33 am

Post by terryood »

pbulteel wrote:So - what version of MySQL? And is the information correct in the config.php page of cacti?

If you provide more information it would be easier to troubleshoot. Can you connect to the web interface? Can you connect to the database as the cacti user? Did you already import the cacti.sql? Was this an existing install? All of this would help troubleshoot. =)

-p
MySQL's version is 4.1.12
when runing php poller.php report these information
I can connect to the web interface http://localhost/cacti/
I can connect to database as the cacti user
I have import the cacti.sql when install cacti
Download the newest cacti-0.8.6e.tar.gz to install it


thanks again
elnino
Cacti User
Posts: 205
Joined: Tue Mar 08, 2005 9:51 pm

Post by elnino »

Which linux distro are you running?
terryood
Posts: 4
Joined: Mon Jun 27, 2005 4:33 am

Post by terryood »

elnino wrote:Which linux distro are you running?
Redhat AS4
terryood
Posts: 4
Joined: Mon Jun 27, 2005 4:33 am

Re: help help. have problem when run php poller.php

Post by terryood »

terryood wrote:when run php poller.php for test.but i get following message:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in /usr/local/cacti-0.8.6e/lib/adodb/drivers/adodb-mysql.inc.php on line 340

<br>Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'


thanks help
this problem have been solved.
I changed config.php with root user
database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "root";
$database_password = "************";
michasio
Posts: 36
Joined: Wed Jun 29, 2005 5:17 am

Post by michasio »

Please change :
$database_hostname = "localhost"; to

$database_hostname = "hostname+domain( if You have of course)"

Bye
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests