Adds database permission for services on localhost
Edits the setup_database function to grant all privileges on all services to localhost. Change-Id: Ia39b3c927cb2ba2abe47d1bbd1061bda4f6d2baa
This commit is contained in:
parent
9a5fd5ee8a
commit
fa810efe5e
@ -174,6 +174,7 @@ function setup_database {
|
||||
local db_password=$(service_to_db_password $service)
|
||||
mysql_exe "CREATE DATABASE $service"
|
||||
mysql_exe "GRANT ALL ON ${service}.* TO '$db_user'@'%' IDENTIFIED BY '$db_password';"
|
||||
mysql_exe "GRANT ALL ON ${service}.* TO '$db_user'@'localhost' IDENTIFIED BY '$db_password';"
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
Loading…
x
Reference in New Issue
Block a user