Dear All
I am pretty much new on linux 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
fails
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
fail
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
[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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Can you actually get to mysql using your username and password etc?
Try
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
Try
Code: Select all
mysql zm -hlocalhost -u<your db username> -p<your db password>
Phil