Have you (a) created your database and (b) defined any monitors?
Phil,
Gentoo and zoneminder
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
corey!
I am having this problem too
I have tried starting from scratch a couple of times, read the faq and search forums for hours but still,
# php /home/httpd/htdocs/zoneminder/zm.php
Warning: mysql_pconnect(): Access denied for user: 'zoneminder_admin@localhost' (Using password: YES) in /home/httpd/htdocs/zoneminder/zm_db.php on line 22
Could not connect to database: Access denied for user: 'zoneminder_admin@localhost' (Using password: YES)
Or if i try and open the zm.php with mozilla, it just keeps opening new pages?
I must have missed something trivial.
how did you fix this? please just point in the right direction ie which file will cause this error?
cheers
--tubs
I am having this problem too
but the problem I had then was that no matter what I did it was still trying to auth to the server as zoneminder_admin@localhost even after I made the appropriate changes manualy in every config file I could find.
I have tried starting from scratch a couple of times, read the faq and search forums for hours but still,
# php /home/httpd/htdocs/zoneminder/zm.php
Warning: mysql_pconnect(): Access denied for user: 'zoneminder_admin@localhost' (Using password: YES) in /home/httpd/htdocs/zoneminder/zm_db.php on line 22
Could not connect to database: Access denied for user: 'zoneminder_admin@localhost' (Using password: YES)
Or if i try and open the zm.php with mozilla, it just keeps opening new pages?
I must have missed something trivial.
how did you fix this? please just point in the right direction ie which file will cause this error?
cheers
--tubs
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I can access the site, the init script works and i get the output when i ask for its status..
'zmaudit.pl -d 900 -y' running at 04/10/06 23:44:07, pid = 5545, valid
'zmwatch.pl' running at 04/10/06 23:42:09, pid = 5521, valid
'zmc -d 0' pending at 04/10/07 00:05:27
'zmfilter.pl' pending at 04/10/07 00:14:15
i then manually exuecte zmc -d 0 and i get the response
Can't connect to server: Access denied for user: 'zoneminder_admin@localhost' (Using password: YES)
now when askedf for the admin username when running the config script i didint specify "zoneminder_admin" i specified the user "root" and it appears that the program got compiled with the default zoneminder_admin user instead. Yet all ther other .pl scripts have been configured properly and show that the db user = root when you go to edit them...
is this a bug? and do i have to create a user zoneminder_admin for mysql to make this happy? if so whats the password going to be?
cheers guys
--tubs
'zmaudit.pl -d 900 -y' running at 04/10/06 23:44:07, pid = 5545, valid
'zmwatch.pl' running at 04/10/06 23:42:09, pid = 5521, valid
'zmc -d 0' pending at 04/10/07 00:05:27
'zmfilter.pl' pending at 04/10/07 00:14:15
i then manually exuecte zmc -d 0 and i get the response
Can't connect to server: Access denied for user: 'zoneminder_admin@localhost' (Using password: YES)
now when askedf for the admin username when running the config script i didint specify "zoneminder_admin" i specified the user "root" and it appears that the program got compiled with the default zoneminder_admin user instead. Yet all ther other .pl scripts have been configured properly and show that the db user = root when you go to edit them...
is this a bug? and do i have to create a user zoneminder_admin for mysql to make this happy? if so whats the password going to be?
cheers guys
--tubs
- securiteaze
- Posts: 25
- Joined: Wed Jun 16, 2004 5:38 pm
I can verify that zoneminder does work with gentoo, albeit with a little tweaking. Perhaps this bit from Section 3 in the online documentation will help. The first user and password is the zm admin user and the second is the viewer, within mysql.
HTHFor a new installation the simplest way to create your database and users is as follows,
mysql mysql < zmschema.sql
mysql mysql
grant select,insert,update,delete on <your database name>.* to '<your first username>'@localhost identified by '<your first password>';
grant select on <your database name>.* to '<your second username>'@localhost identified by '<your second password>';
quit
mysqladmin reload
- securiteaze
- Posts: 25
- Joined: Wed Jun 16, 2004 5:38 pm
FWIW The following script is what I use build zoneminder
Code: Select all
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--with-mysql=/usr \
--with-webdir=/www \
--with-cgidir=/www/cgi-bin \
--with-webuser=apache \
--with-webgroup=apache \
--with-ffmpeg=/usr/bin \
--with-lame=/usr/bin &&
perl zmconfig.pl -f zmconfig-gentoo.txt -noi ||
echo "./configure failed"