Hi Jean-Michel,

On 26-02-16 16:41, Jean-Michel Vourgère 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:48:25.181210 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.

Paul

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to