From fa810efe5e1025f72a85f0bc01d4d828a4e5c82f Mon Sep 17 00:00:00 2001 From: sayalilunkad Date: Wed, 19 Nov 2014 15:35:59 +0530 Subject: [PATCH] Adds database permission for services on localhost Edits the setup_database function to grant all privileges on all services to localhost. Change-Id: Ia39b3c927cb2ba2abe47d1bbd1061bda4f6d2baa --- labs/lib/functions.guest | 1 + 1 file changed, 1 insertion(+) diff --git a/labs/lib/functions.guest b/labs/lib/functions.guest index cf6b7bd8..1e7c9019 100644 --- a/labs/lib/functions.guest +++ b/labs/lib/functions.guest @@ -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';" } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -