new install, mysql setup

Forum for questions and support relating to the 1.30.x releases only.
Locked
joea
Posts: 20
Joined: Mon Feb 20, 2017 8:11 pm

new install, mysql setup

Post 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
joea
Posts: 20
Joined: Mon Feb 20, 2017 8:11 pm

Re: new install, mysql setup

Post 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
joea
Posts: 20
Joined: Mon Feb 20, 2017 8:11 pm

Re: new install, mysql setup

Post by joea »

oh, please do(n't) tell me the ' ' means my defined user/pw.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: new install, mysql setup

Post 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.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
joea
Posts: 20
Joined: Mon Feb 20, 2017 8:11 pm

Re: new install, mysql setup

Post 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 . . .
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: new install, mysql setup

Post 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!
Locked