diff options
author | Brian Evans <grknight@gentoo.org> | 2016-02-07 15:47:48 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2016-02-07 15:47:48 -0500 |
commit | 705d182ed875589b0ad1c809ae6ba1cfadf55352 (patch) | |
tree | afa3427ba37063d8436ab1577b5c4fb5fe751412 /eclass/mysql-multilib.eclass | |
parent | sci-libs/coinor-alps: Version bump to 1.5.4 (diff) | |
download | gentoo-705d182ed875589b0ad1c809ae6ba1cfadf55352.tar.gz gentoo-705d182ed875589b0ad1c809ae6ba1cfadf55352.tar.bz2 gentoo-705d182ed875589b0ad1c809ae6ba1cfadf55352.zip |
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.
Diffstat (limited to 'eclass/mysql-multilib.eclass')
-rw-r--r-- | eclass/mysql-multilib.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/mysql-multilib.eclass b/eclass/mysql-multilib.eclass index 69293f100497..b2e7dffa09ad 100644 --- a/eclass/mysql-multilib.eclass +++ b/eclass/mysql-multilib.eclass @@ -1140,7 +1140,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 \ |