Mariadb 10.3.36
Nems 1.5.2 (raspian 10)
cacti 1.2.23
Given the issues I was having, I decided to reinstall the OS and start again.
I followed this web site's instructions (exactly) for installing everything including Cacti, and didn't do anything else https://howchoo.com/pi/raspberry-pi-net ... itor-setup
When I attempt to set up Cacti I am met with a screen that says the following:
Code: Select all
FATAL: Connection to Cacti database failed. Please ensure:
the PHP MySQL module is installed and enabled.
the database is running.
the credentials in config.php are valid.
Code: Select all
/opt/cacti/include/config.php
Code: Select all
$ sudo mysql --version
mysql Ver 15.1 Distrib 10.3.22-MariaDB, for debian-linux-gnueabihf (armv8l) using readline 5.2
Code: Select all
nemsadmin@nems:~ $ sudo service mysql status
● mariadb.service - MariaDB 10.3.22 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-01-16 17:43:30 AEDT; 14min ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 673 (mysqld)
Status: "Taking your SQL requests now..."
Tasks: 31 (limit: 4035)
Memory: 102.8M
CGroup: /system.slice/mariadb.service
└─673 /usr/sbin/mysqld
Jan 16 17:43:25 nems systemd[1]: Starting MariaDB 10.3.22 database server...
Jan 16 17:43:28 nems mysqld[673]: 2023-01-16 17:43:28 0 [Note] /usr/sbin/mysqld (mysqld 10.3.22-MariaDB-0+deb10u1) star
Jan 16 17:43:30 nems systemd[1]: Started MariaDB 10.3.22 database server.
Jan 16 17:43:31 nems /etc/mysql/debian-start[995]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Jan 16 17:43:31 nems /etc/mysql/debian-start[995]: Looking for 'mysql' as: /usr/bin/mysql
Jan 16 17:43:31 nems /etc/mysql/debian-start[995]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Jan 16 17:43:31 nems /etc/mysql/debian-start[995]: Version check failed. Got the following error when calling the 'mysq
Jan 16 17:43:31 nems /etc/mysql/debian-start[995]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
Jan 16 17:43:31 nems /etc/mysql/debian-start[995]: FATAL ERROR: Upgrade failed
Jan 16 17:43:31 nems /etc/mysql/debian-start[1043]: Checking for insecure root accounts.