librenms@librenms:~$ sudo ./daily.sh
[sudo] password for librenms:
Re-running /opt/librenms/daily.sh as librenms user
Could not connect to database, check logs/librenms.log.
Updating SQL-Schema OK
Cleaning up DB OK
Could not connect to database, check logs/librenms.log.
librenms@librenms:~$
librenms@librenms:~$ ./validate.php
Component
Version
LibreNMS
1.48.1-25-g21192a9
DB Schema
Not Connected (0)
PHP
7.2.15-1+ubuntu16.04.1+deb.sury.org+1
MySQL
?
RRDTool
1.5.5
SNMP
NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
Could not connect to database, check logs/librenms.log.
librenms@librenms:~$
Please help on how to connect to the database - command. I am not good in database
tried this : librenms@librenms:~$ mysql -u librenms -p
Enter password:
ERROR 1045 (28000): Access denied for user ‘librenms’@‘localhost’ (using password: YES)
If you really cannot login to the database even with “root” user, than as a last resort you can reset the root password, and then reset the librenms password for the librenms user. Or put your root credentials into the config.php and .env if you are happy with that.
perhaps! I was not the one who setup Librenms plus i am newly employed by the company. So most of the documented passwords were not going through so for servers i had to bypass login by tweaking at grub.