Cacti v0.8.6h $database_Port : always set 3306

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

Moderators: Developers, Moderators

Post Reply
sdeba03
Posts: 2
Joined: Mon Jul 17, 2006 2:50 am

Cacti v0.8.6h $database_Port : always set 3306

Post by sdeba03 »

Hello,

cacti's configuration under windows has a little bug :-? .
We can modify this parameters :
$database_default ='cacti'
$database_hostname='localhost'
$database_username='cactiuser'
$database_password='cacti'
$database_port = '3307' (in my case)
in the file : cacti_web_root/cacti/include/config.php.

But if i post variables in the file :
./cacti/lib/adodb/drivers/adodb.mysql.inc.php in function _pconnect
i can read : "localhost:3306 cactiuser cacti 0"
The port doesn't match

After reading some files, call function in config.php was :
db_connect_real($database_hostname, $database_username, $database_password, $database_default, $database_type);
but it must be :
db_connect_real($database_hostname, $database_username, $database_password, $database_default, $database_type, $database_port);
to use my port.

And now it's good... install works :D .
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Hmm, I could've sworn I've used cacti on another port on Windows and it worked. Anyways, feel free to submit a bug report: bugs.cacti.net
sdeba03
Posts: 2
Joined: Mon Jul 17, 2006 2:50 am

Post by sdeba03 »

with 0.8.6h ??? it's not possible because function call is bad and port number is by default 3306. Are you sure mysql port is different to 3306 ?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Verify your config.php.dist and make sure that you followed the instructions, rename config.php to config.php.old, rename config.php.dist to config.php and then restore your settings to that file. I believe that this will fix your issue.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests