Add reference to mysql Create permission in rpm README's
This commit is contained in:
parent
ef8830b373
commit
d9c3061b52
|
@ -25,8 +25,8 @@ New installs
|
||||||
introduce an obvious security issue. The following should set this up:
|
introduce an obvious security issue. The following should set this up:
|
||||||
|
|
||||||
mysql -u root -p
|
mysql -u root -p
|
||||||
grant select,insert,update,delete,lock tables,alter on zm.* to
|
grant select,insert,update,delete,lock tables,alter,create
|
||||||
'zmuser'@localhost identified by 'zmpass';
|
on zm.* to 'zmuser'@localhost identified by 'zmpass';
|
||||||
|
|
||||||
Obviously, change at least zmpass to an actual, secure password or
|
Obviously, change at least zmpass to an actual, secure password or
|
||||||
passphrase. You can change zmuser as well if you like.
|
passphrase. You can change zmuser as well if you like.
|
||||||
|
@ -95,7 +95,7 @@ Upgrades
|
||||||
2. Add additional permissions to the zmuser account:
|
2. Add additional permissions to the zmuser account:
|
||||||
|
|
||||||
mysql -u root -p
|
mysql -u root -p
|
||||||
grant lock tables,alter on zm.* to
|
grant lock tables,alter,create on zm.* to
|
||||||
'zmuser'@localhost identified by 'zmpass';
|
'zmuser'@localhost identified by 'zmpass';
|
||||||
|
|
||||||
Since this is an upgrade, the assumption is that the zmuser account already
|
Since this is an upgrade, the assumption is that the zmuser account already
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
|
|
||||||
mysql -uroot -p
|
mysql -uroot -p
|
||||||
mysql> create database zm;
|
mysql> create database zm;
|
||||||
mysql> grant select,insert,update,delete,lock tables,alter on zm.* to
|
mysql> grant select,insert,update,delete,lock tables,alter,create
|
||||||
'zmuser'@localhost identified by 'zmpass';
|
on zm.* to 'zmuser'@localhost identified by 'zmpass';
|
||||||
mysql> exit;
|
mysql> exit;
|
||||||
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
|
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
|
||||||
mysqladmin -uroot -p reload
|
mysqladmin -uroot -p reload
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
1. Add additional permissions to the zmuser account:
|
1. Add additional permissions to the zmuser account:
|
||||||
|
|
||||||
mysql -u root -p
|
mysql -u root -p
|
||||||
grant lock tables,alter on zm.* to
|
grant lock tables,alter,create on zm.* to
|
||||||
'zmuser'@localhost identified by 'zmpass';
|
'zmuser'@localhost identified by 'zmpass';
|
||||||
|
|
||||||
Since this is an upgrade, the assumption is that the zmuser account exists
|
Since this is an upgrade, the assumption is that the zmuser account exists
|
||||||
|
|
|
@ -36,8 +36,8 @@ New installs
|
||||||
|
|
||||||
mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
|
mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
|
||||||
mysql -u root -p
|
mysql -u root -p
|
||||||
mysql> grant select,insert,update,delete,lock tables,alter on zm.* to
|
mysql> grant select,insert,update,delete,lock tables,alter, create
|
||||||
'zmuser'@localhost identified by 'zmpass';
|
on zm.* to 'zmuser'@localhost identified by 'zmpass';
|
||||||
mysql> exit;
|
mysql> exit;
|
||||||
mysqladmin -u root -p reload
|
mysqladmin -u root -p reload
|
||||||
|
|
||||||
|
@ -101,8 +101,8 @@ Upgrades
|
||||||
|
|
||||||
Overtime, the database account permissions required for normal operation
|
Overtime, the database account permissions required for normal operation
|
||||||
have changed. Verify the zmuser database account has been granted select,
|
have changed. Verify the zmuser database account has been granted select,
|
||||||
insert, update, delete, lock tables, and alter permission to the ZoneMinder
|
insert, update, delete, lock tables, alter, and create permission to the
|
||||||
database:
|
ZoneMinder database:
|
||||||
|
|
||||||
mysql -u root -p
|
mysql -u root -p
|
||||||
mysql> show grants for zmuser@localhost;
|
mysql> show grants for zmuser@localhost;
|
||||||
|
|
Loading…
Reference in New Issue