commit:     8c240ee6acb0a20ebb9bea19548c42f18d2ded55
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  7 20:29:36 2016 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Sun Feb  7 20:29:36 2016 +0000
URL:        https://gitweb.gentoo.org/proj/mysql.git/commit/?id=8c240ee6

Add FLUSH PRIVILEGES to the pkg_config after setting the root password

 eclass/mysql-multilib-r1.eclass | 2 +-
 eclass/mysql-multilib.eclass    | 2 +-
 eclass/mysql-v2.eclass          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/eclass/mysql-multilib-r1.eclass b/eclass/mysql-multilib-r1.eclass
index e14a2a8..1512b21 100644
--- a/eclass/mysql-multilib-r1.eclass
+++ b/eclass/mysql-multilib-r1.eclass
@@ -952,7 +952,7 @@ mysql-multilib-r1_pkg_config() {
 
        ebegin "Setting root password"
        # Do this from memory, as we don't want clear text passwords in temp 
files
-       local sql="UPDATE mysql.user SET Password = 
PASSWORD('${MYSQL_ROOT_PASSWORD}') WHERE USER='root'"
+       local sql="UPDATE mysql.user SET Password = 
PASSWORD('${MYSQL_ROOT_PASSWORD}') WHERE USER='root'; FLUSH PRIVILEGES"
        "${EROOT}/usr/bin/mysql" \
                --socket=${socket} \
                -hlocalhost \

diff --git a/eclass/mysql-multilib.eclass b/eclass/mysql-multilib.eclass
index 0016e76..a8cac37 100644
--- a/eclass/mysql-multilib.eclass
+++ b/eclass/mysql-multilib.eclass
@@ -1144,7 +1144,7 @@ mysql-multilib_pkg_config() {
 
        ebegin "Setting root password"
        # Do this from memory, as we don't want clear text passwords in temp 
files
-       local sql="UPDATE mysql.user SET Password = 
PASSWORD('${MYSQL_ROOT_PASSWORD}') WHERE USER='root'"
+       local sql="UPDATE mysql.user SET Password = 
PASSWORD('${MYSQL_ROOT_PASSWORD}') WHERE USER='root'; FLUSH PRIVILEGES"
        "${EROOT}/usr/bin/mysql" \
                --socket=${socket} \
                -hlocalhost \

diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass
index c654374..2ca4f7f 100644
--- a/eclass/mysql-v2.eclass
+++ b/eclass/mysql-v2.eclass
@@ -895,7 +895,7 @@ mysql-v2_pkg_config() {
 
        ebegin "Setting root password"
        # Do this from memory, as we don't want clear text passwords in temp 
files
-       local sql="UPDATE mysql.user SET Password = 
PASSWORD('${MYSQL_ROOT_PASSWORD}') WHERE USER='root'"
+       local sql="UPDATE mysql.user SET Password = 
PASSWORD('${MYSQL_ROOT_PASSWORD}') WHERE USER='root'; FLUSH PRIVILEGES"
        "${EROOT}/usr/bin/mysql" \
                --socket=${socket} \
                -hlocalhost \

Reply via email to