Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Freshly downloaded 0.8.7g, extracted it, changed nothing but settings.php for database config. PHP version is 5.3.4. I would like to use a socket to connect to the database, but not only is there no option for that, the TCP connection is impossible.
Something adds 3306, regardless of $database_port's setting. If I set it empty, or to 3306, or comment it out, I get 3306:3306 in the connection string. If I set it to anything else, I get anything else:3306 as the connection string.
petteyg359 wrote:Freshly downloaded 0.8.7g, extracted it, changed nothing but settings.php for database config.
This should be include/config.php.
And yes, we use the default of 3306 e.g. in include/global.php in case that config.php was not found (some distros put it in a different location). I never heard about socket support for mysql in cacti. So I suspect it will not work, at least not without some testing and perhaps development work.
Contributions to this are welcome
R.
gandalf wrote:So do you have any experience in using/implementing socket support?
R.
Yeah. Use a database layer that isn't insane :) However, ADO is PHP, and PHP itself has no problems with mysql(i) and socket connections, so I'm not sure where the problem actually is.