I have installed www-misc/zoneminder-1.22.2 with vhost use flag.
After running
webapp-config -I -h zoneminder.local -d zoneminder zoneminder 1.22.2
I have received post-install instructions:
...
0. If this is a new installation, you will need to create a database for ZM to
use. Execute the following:
cd /usr/share/zoneminder
mysql mysql < db/zm_create.sql
mysql mysql
> grant select,insert,update,delete on zoneminder.* to '<username>'@localhost
identified by '<password>';
> quit
mysqladmin reload
...
If you look at db/zm_create.sql (and /etc/zm.conf), you'll see, that database
name for data is zn (not zoneminder), so correct command must be:
grant select,insert,update,delete on zm.* to '<username>'@localhost identified
by '<password>';
p.s. BTW, zoneminder compilled w/o troubles on my amd64 platform, but ecbuild
doesn't contain ~amd keyword :(