Cacti Usr Share Php Adodb Drivers Adodb Mysql Inc Php

Date: Fri, 26 Feb 2016 15:41:30 +0000 Paul Gevers wrote: >Please help me. I only include >'/usr/share/php/adodb/adodb.inc.php'. Is that wrong?

Canon 7d Icc Profile Viewer. MySQL server host name: localhost Database name for cacti: cacti Cacti database username: cacti Cacti user password: cacti_password Webserver type: Apache2 7. Install the MySQL database: (ignore the mysql instructions to change your password; proceed to step 8.). I recently upgraded to PHP7 and Cacti 1.0, but while the webinterface continues to work as before, the poller seems to ignore the credentials that are present, correct and working in include/config.php. Root@hades:~# sudo -u www-data php. Picture Style Canon Cinestyle 600d Download on this page.

It looks like your configuration uses the deprecated mysql driver. That driver looks dead. Hp 2100 Driver Windows Vista. You should be using mysqli, if I understand correctly. I would try replacing $database_type = 'mysql'; by $database_type = 'mysqli'; maybe? *If* this work, cacti default driver should be changed too. A quick 'grep -R database_type' in cacti source seems to show that there are many instances to change. If you don't have a 'database' in your config, it must be using the wrong 'mysql' value: Try adding it.

Does that help? Date: Fri, 26 Feb 2016 20:22:10 +0100 [ (text/plain, inline)] On 26-02-16 17:23, Ondřej Surý wrote: >>>Highest PHP Version support (V5.21) 7 >>So I wouldn't worry too much and just wait for ADOdb 5.21 release. Depending on how serious adodb takes the mysql support in php7, this may indeed be what I need for cacti. Just to be clear, once (this may take a while) the development branch is turned into a proper release, I don't depend on libphp-adodb anymore anyways, my upstream already move away. So I would say, if it is ok with you, try to package the latest version of adodb in Debian and I will try to see if that resolves the issue.

Paul [ (application/pgp-signature, attachment)]. Date: Fri, 25 Mar 2016 10:45:18 +0000 Hello Paul you wrote: >>I would try replacing >>$database_type = 'mysql'; >>by >>$database_type = 'mysqli'; >>maybe? >>>>*If* this work, cacti default driver should be changed too. A quick >>'grep -R database_type' in cacti source seems to show that there are >>many instances to change. >>>>If you don't have a 'database' in your config, it must be using the >>wrong 'mysql' value: Try adding it. >>The config does define that.

That would be an extremely simple solution. >>Unfortunately, it looks like mysql and mysqli are not compatible (at >least not on my jessie system with php5: >Error on web-page: >FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure >you have specified a valid MySQL database name in 'include/config.php' >>[Fri Feb 26 16:10 2016] [:error] [pid 7222] [client::1:36225] >PHP Warning: mysqli_real_connect() expects parameter 6 to be long, >string given in /usr/share/php/adodb/drivers/adodb-mysqli.inc.php on >line 113 >>But this probably means that I just have to fix cacti if this is truly >properly supported by libphp-adodb. We should just reassign I guess. Actually, this is a another issue that is is being worked.

Coments are closed
Scroll to top