From 705d182ed875589b0ad1c809ae6ba1cfadf55352 Mon Sep 17 00:00:00 2001 From: Brian Evans Date: Sun, 7 Feb 2016 15:47:48 -0500 Subject: mysql eclasses: Add missing SQL command after setting root password wrt bug 574040 When updating the table by hand, we don't do FLUSH PRIVILEGES before inserting the next command which can stop the loading of the timezone and help tables. --- eclass/mysql-multilib-r1.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass/mysql-multilib-r1.eclass') diff --git a/eclass/mysql-multilib-r1.eclass b/eclass/mysql-multilib-r1.eclass index e14a2a832beb..1512b21d4ddb 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 \ -- cgit v1.2.3-65-gdbad