Page 1 of 1

new install, mysql setup

Posted: Thu Feb 23, 2017 7:35 pm
by joea
Installed Centos7.
Installing ZM per zmrepo

At bolded step below in README.Centos, after entering password tells me ERROR at line 1: Unknown command '\'.
The text renders as shown using less, or copying file to windows and using wordpad.

2. Using the password for the root account set during the previous step, you
will need to create the ZoneMinder database and configure a database
account for ZoneMinder to use:

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to \
'zmuser'@localhost identified by 'zmpass';"

mysqladmin -uroot -p reload

Re: new install, mysql setup

Posted: Thu Feb 23, 2017 7:36 pm
by joea
Preliminary steps:

wget http://zmrepo.zoneminder.com/el/7/x86_6 ... noarch.rpm
sudo yum install --nogpgcheck zmrepo-7-8.el7.centos.noarch.rpm
sudo yum install zoneminder
less /usr/share/doc/zoneminder-*/README.Centos7

Re: new install, mysql setup

Posted: Thu Feb 23, 2017 7:38 pm
by joea
oh, please do(n't) tell me the ' ' means my defined user/pw.

Re: new install, mysql setup

Posted: Thu Feb 23, 2017 7:45 pm
by knight-of-ni
Works fine here.

Watch how I do it:
https://www.youtube.com/watch?v=l2lLvl8WxfU

Windows + Wordpad is likely your problem. End-of-line is defined differently in Windows than in Linux.
Copy and paste the commands from a Linux machine.

Re: new install, mysql setup

Posted: Fri Feb 24, 2017 12:00 am
by joea
Thanks. Mainly sorted now. Most of the problem was attempting to install a still unfamiliar distro while still attempting to do other "work", leading to frustration and errors. Sigh. Mulitasking no longer becomes me. So to speak.

Sorted enough so that the camera is back on line. I'm hoping things are more stable on dedicated hardware. Umm, ZM, that is . . .

Re: new install, mysql setup

Posted: Fri Feb 24, 2017 2:31 am
by bbunge
joea wrote:Thanks. Mainly sorted now. Most of the problem was attempting to install a still unfamiliar distro while still attempting to do other "work", leading to frustration and errors. Sigh. Mulitasking no longer becomes me. So to speak.

Sorted enough so that the camera is back on line. I'm hoping things are more stable on dedicated hardware. Umm, ZM, that is . . .
Working with Zoneminder (and computers in general) helps keep my three score and ten brain functioning! Can still knock off 25 miles on the bicycle while 50 is a bit more tiring with age.

Just keep moving... brain engaging and physically!