From the web server, attempt to login to the MariaDB/MySQL database directly.
Code: Select all
mysql -ucactiuser -pcactiuser -hmy-database-host -A cacti
Once you can do that, you should be able to use Cacti. Some installs of MariaDB/MySQL disable logins over anything but the local socket or localhost. Not certain that's the issue. If the login fails, you should get a message like:
User 'cactiuser@somehost' is not authorized...
So, from the database server, you do the following:
Code: Select all
GRANT ALL ON cacti.* to 'cactiuser'@'somehost' identified by 'cactiuser';
GRANT SELECT on mysql.time_zone_name to 'cactiuser'@'somehost';
That'll normally do it properly. If not, then check that networking is enabled on the database settings. These are the offending settings on the database to look out for.
Code: Select all
#skip-networking=0
#skip-bind-address