Bug 153585 - Error in post-install instruction for www-misc/zoneminder-1.22.2
Bug#: 153585 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: web-apps@gentoo.org Reported By: protected@tvims.ru
Component: Ebuilds
URL: 
Summary: Error in post-install instruction for www-misc/zoneminder-1.22.2
Keywords:  
Status Whiteboard: 
Opened: 2006-10-31 11:39 0000
Description:   Opened: 2006-10-31 11:39 0000
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 :(

------- Comment #1 From Renat Lumpau 2006-11-01 14:18:22 0000 -------
done, thanks