Can't get zmupdate.pl to run

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
tedukes
Posts: 14
Joined: Wed Feb 01, 2017 12:53 am

Can't get zmupdate.pl to run

Post by tedukes »

Hello,
Trying to upgrade fro 1.32.x to 1.34.3 on CentOS 7.

When I run zmupdate.pl, iget the folowing errors:
DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/share/perl5/vendor_perl/ZoneMinder/Database.pm line 107.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/share/perl5/vendor_perl/ZoneMinder/Database.pm line 107.
03/01/2020 12:11:30.937602 zmupdate[4730].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Access denied for user 'zmuser'@'localhost' (using password: YES) error val:]
03/01/2020 12:11:30.937941 zmupdate[4730].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Access denied for user 'zmuser'@'localhost' (using password: YES) error val:]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/share/perl5/vendor_perl/ZoneMinder/Database.pm line 107.
03/01/2020 12:11:30.938490 zmupdate[4730].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Access denied for user 'zmuser'@'localhost' (using password: YES) error val:]
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 147.
Compilation failed in require at /usr/bin/zmupdate.pl line 73.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 73.

If I try running zmupdate.pl --user=root --pass=<mysql_root_pwd> --version=<from version> and inserting my password, I get the following error:
bash: syntax error near unexpected token `newline'

Any help would be greatly appreciated

TIA
tedukes
Posts: 14
Joined: Wed Feb 01, 2017 12:53 am

Re: Can't get zmupdate.pl to run

Post by tedukes »

Found the problem.
The password in zm.conf was not the same as the password for the database.
Post Reply