<div dir="ltr"><div><div>Daniel,<br><br></div>According to your error, your credentials are incorrect for your SQL database. Try signing into your database using mysql -u zmuser -p   when it asks for a password put in your password (the same credentials you used in the '<a href="http://zmupdate.pl">zmupdate.pl</a>' command above). <br><br></div>Thank you,   <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 5, 2018 at 6:35 AM, Daniel Prosser <span dir="ltr"><<a href="mailto:dpross1100@msn.com" target="_blank">dpross1100@msn.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
ZoneMinder was upgraded to version 1.31.1 in the last update. The new<br>
version builds fine, but I am having trouble running the <a href="http://zmupdate.pl" rel="noreferrer" target="_blank">zmupdate.pl</a><br>
script to update my database. Using this command:<br>
<br>
/usr/bin/<a href="http://zmupdate.pl" rel="noreferrer" target="_blank">zmupdate.pl</a> --version=1.30.4 --user={dbuser} --pass={dbpass}<br>
<br>
I get this result:<br>
<br>
----------<br>
Initiating database upgrade to version 1.31.1 from version 1.30.4<br>
<br>
Please ensure that ZoneMinder is stopped on your system prior to<br>
upgrading the database.<br>
Press enter to continue or ctrl-C to stop : <br>
<br>
Do you wish to take a backup of your database prior to upgrading?<br>
This may result in a large file in /var/tmp/zm if you have a lot of<br>
events.<br>
Press 'y' for a backup or 'n' to continue : n<br>
<br>
Upgrading database to version 1.31.1<br>
Loading config from DBNo option 'ZM_DIR_EVENTS' found, removing.<br>
No option 'ZM_DIR_IMAGES' found, removing.<br>
No option 'ZM_DIR_SOUNDS' found, removing.<br>
No option 'ZM_FRAME_SOCKET_SIZE' found, removing.<br>
No option 'ZM_OPT_FRAME_SERVER' found, removing.<br>
No option 'ZM_PATH_ARP' found, removing.<br>
No option 'ZM_PATH_LOGS' found, removing.<br>
No option 'ZM_PATH_MAP' found, removing.<br>
No option 'ZM_PATH_SOCKS' found, removing.<br>
No option 'ZM_PATH_SWAP' found, removing.<br>
No option 'ZM_PATH_ZMS' found, removing.<br>
 207 entries<br>
Saving config to DB 207 entries<br>
DBD::mysql::db do failed: Access denied for user 'zmuser'@'localhost' to<br>
database 'zm' at /usr/share/perl5/vendor_perl/<wbr>ZoneMinder/Config.pm line<br>
214, <STDIN> line 2.<br>
Can't lock Config table: Access denied for user 'zmuser'@'localhost' to<br>
database 'zm' at /usr/bin/<a href="http://zmupdate.pl" rel="noreferrer" target="_blank">zmupdate.pl</a> line 464.<br>
----------<br>
<br>
I have also tried without specifying --user and --pass, but I get the<br>
same error. For now I have gone back to my old version and restored the<br>
backup database. I can also ask on the ZoneMinder forums, but I'm not<br>
sure if the issue lies with <a href="http://zmupdate.pl" rel="noreferrer" target="_blank">zmupdate.pl</a> or with the way ZoneMinder is<br>
configured by the SBo package. Seems like pretty much everyone over<br>
there uses Ubuntu, CentOS, or Debian.<br>
<br>
Dan<br>
</blockquote></div><br></div>