Ubuntu 16.04 upgrade to 1.30 failing trying to access mysql as root.
Posted: Sun Oct 30, 2016 4:36 pm
Having a problem with upgrading Zoneminder to 1.30 on a Ubuntu 16.04 platform. I followed the wiki instructions at
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way adapted for the fact I was an upgrade not fresh install.
apt seems to want to install the correct package but it is bombing on accessing mysql with root privileges.
Googling suggested adding a file called ".my.cnf" to my home directory or the root directory with mysql root credentials. Tried adding that file to my home, to /, and to /root with no luck.
Any suggestions on how to proceed? I thought about trying to change the root password for mysql to no password but I am worried about screwing that up.
Thanks for you help, David
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way adapted for the fact I was an upgrade not fresh install.
apt seems to want to install the correct package but it is bombing on accessing mysql with root privileges.
Code: Select all
sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up zoneminder (1.30.0-xenial-2016101901) ...
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
dpkg: error processing package zoneminder (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any suggestions on how to proceed? I thought about trying to change the root password for mysql to no password but I am worried about screwing that up.
Thanks for you help, David