Commit 723636a1 authored by nextime's avatar nextime

Add asterisk user to the db creation

parent 878057eb
...@@ -23,7 +23,10 @@ ...@@ -23,7 +23,10 @@
CREATE DATABASE domotika; CREATE DATABASE domotika;
CREATE USER 'domotika'@'localhost' IDENTIFIED BY 'dmdbpwdmsql'; CREATE USER 'domotika'@'localhost' IDENTIFIED BY 'dmdbpwdmsql';
CREATE USER 'asterisk'@'localhost' IDENTIFIED BY 'astdbpwd';
GRANT USAGE ON * . * TO 'domotika'@'localhost' IDENTIFIED BY 'dmdbpwdmsql' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ; GRANT USAGE ON * . * TO 'domotika'@'localhost' IDENTIFIED BY 'dmdbpwdmsql' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
GRANT USAGE ON * . * TO 'asterisk'@'localhost' IDENTIFIED BY 'dmdbpwdmsql' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
GRANT ALL PRIVILEGES ON `domotika` . * TO 'domotika'@'localhost' WITH GRANT OPTION ; GRANT ALL PRIVILEGES ON `domotika` . * TO 'domotika'@'localhost' WITH GRANT OPTION ;
GRANT ALL PRIVILEGES ON `domotika` . * TO 'asterisk'@'localhost' WITH GRANT OPTION ;
FLUSH PRIVILEGES; FLUSH PRIVILEGES;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment