Page 1 of 1

fails

Posted: Mon Jun 27, 2005 10:29 am
by koldo
Dear All

I am pretty much new on linux :oops: and therefore I am completely lost. I have follow step by step all indication for doing zm instalattion. However as I try to run the program I receive the following warnings:

[root@localhost scripts]# chmod +x zm
[root@localhost scripts]# ./zm start
Starting ZoneMinder: DBI connect('database=zm;host=localhots','root',...) failed: Unknown MySQL Server Host 'localhots' (1) at /usr/local/bin/zmpkg.pl line 65
Can't call method "prepare_cached" on an undefined value at /usr/local/bin/zmpkg.pl line 67.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 75.
[FAILED]
[root@localhost scripts]#

What am I doing wrong? is anybody able to help me?

thanks
Luis

Posted: Mon Jun 27, 2005 11:33 am
by zoneminder
If your error really says 'localhots' then that's where I'd start. Unless you have an unusual hostname this should be 'localhost'.

Phil

fail

Posted: Wed Jun 29, 2005 10:37 am
by koldo
You was absolutely right, thankyou very much, the initial failure was caused by a misspelling. however after I corrected I still found a similar error message it is as follows:

[root@localhost scripts]# ./zm start
Starting ZoneMinder: DBI connect('database=zm;host=localhost','root',...) failed: Access denied for user: 'root@localhost' (Using password: YES) at /usr/local/bin/zmpkg.pl line 65
Can't call method "prepare_cached" on an undefined value at /usr/local/bin/zmpkg.pl line 67.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 75.
[FAILED]
[root@localhost scripts]#

I have tried to create the database following the instructions on the manual, as well as the spanish writen ones, but I can't. access is denied.

as I never used mysql before I guess that I have something wrong, but I do not have a clue of what it can be. Any help will be highly appreciated.

regards

Posted: Wed Jun 29, 2005 10:38 am
by koldo
by the way I am running mandrake 10.1

Posted: Wed Jun 29, 2005 2:56 pm
by zoneminder
Can you actually get to mysql using your username and password etc?

Try

Code: Select all

mysql zm -hlocalhost -u<your db username> -p<your db password>
assuming you have called your db zm. If that doesn't work then mysql is not set up properly so you need to address that first. If you can get in using that method then you need to check that you have ZM set up to use the same credentials.

Phil