Please make sure you have specified a valid MySQL database name in 'include/config.php'

code8888 picture code8888 · Aug 18, 2016 · Viewed 7.3k times · Source

I've just downloaded cacti and I kept getting

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


This is what I have in include/config.php

$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "root";
$database_password = "***";
$database_port = "3306";
$database_ssl = false;

What did I forget or did wrong ?

Answer