From fdbab5adc3adb6da51ddd65e5918c9deea925719 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Tue, 2 Feb 2021 15:18:54 -0600 Subject: [PATCH] rpmspecfile README - update zmuser creation on newer sql's --- distros/redhat/readme/README.httpd | 8 +++++--- distros/redhat/readme/README.nginx | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/distros/redhat/readme/README.httpd b/distros/redhat/readme/README.httpd index 1ba0ee688..32004a92d 100644 --- a/distros/redhat/readme/README.httpd +++ b/distros/redhat/readme/README.httpd @@ -15,9 +15,11 @@ NOTE: EL7 users should replace "dnf" with "yum" in the instructions below. 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';" + mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql + mysql -u root -p -e "CREATE USER 'zmuser'@'localhost' \ + IDENTIFIED BY 'zmpass';" + mysql -u root -p -e "GRANT ALL PRIVILEGES ON zm.* TO \ + 'zmuser'@localhost;" mysqladmin -uroot -p reload The database account credentials, zmuser/zmpass, are arbitrary. Set them to diff --git a/distros/redhat/readme/README.nginx b/distros/redhat/readme/README.nginx index e49838bd8..2a15d9544 100644 --- a/distros/redhat/readme/README.nginx +++ b/distros/redhat/readme/README.nginx @@ -13,9 +13,11 @@ New installs 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';" + mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql + mysql -u root -p -e "CREATE USER 'zmuser'@'localhost' \ + IDENTIFIED BY 'zmpass';" + mysql -u root -p -e "GRANT ALL PRIVILEGES ON zm.* TO \ + 'zmuser'@localhost;" mysqladmin -uroot -p reload The database account credentials, zmuser/zmpass, are arbitrary. Set them to