rpmspecfile README - update zmuser creation on newer sql's
This commit is contained in:
parent
b35e27d0b6
commit
fdbab5adc3
|
@ -16,8 +16,10 @@ NOTE: EL7 users should replace "dnf" with "yum" in the instructions below.
|
||||||
database and configure a database account for ZoneMinder to use:
|
database and configure a database account for ZoneMinder to use:
|
||||||
|
|
||||||
mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
|
mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
|
||||||
mysql -uroot -p -e "grant all on zm.* to \
|
mysql -u root -p -e "CREATE USER 'zmuser'@'localhost' \
|
||||||
'zmuser'@localhost identified by 'zmpass';"
|
IDENTIFIED BY 'zmpass';"
|
||||||
|
mysql -u root -p -e "GRANT ALL PRIVILEGES ON zm.* TO \
|
||||||
|
'zmuser'@localhost;"
|
||||||
mysqladmin -uroot -p reload
|
mysqladmin -uroot -p reload
|
||||||
|
|
||||||
The database account credentials, zmuser/zmpass, are arbitrary. Set them to
|
The database account credentials, zmuser/zmpass, are arbitrary. Set them to
|
||||||
|
|
|
@ -14,8 +14,10 @@ New installs
|
||||||
database and configure a database account for ZoneMinder to use:
|
database and configure a database account for ZoneMinder to use:
|
||||||
|
|
||||||
mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
|
mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
|
||||||
mysql -uroot -p -e "grant all on zm.* to \
|
mysql -u root -p -e "CREATE USER 'zmuser'@'localhost' \
|
||||||
'zmuser'@localhost identified by 'zmpass';"
|
IDENTIFIED BY 'zmpass';"
|
||||||
|
mysql -u root -p -e "GRANT ALL PRIVILEGES ON zm.* TO \
|
||||||
|
'zmuser'@localhost;"
|
||||||
mysqladmin -uroot -p reload
|
mysqladmin -uroot -p reload
|
||||||
|
|
||||||
The database account credentials, zmuser/zmpass, are arbitrary. Set them to
|
The database account credentials, zmuser/zmpass, are arbitrary. Set them to
|
||||||
|
|
Loading…
Reference in New Issue