Skip to content

Commit

Permalink
dev-db/mysql: Fix initial password setting in 5.6
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/666992
Signed-off-by: Brian Evans <[email protected]>
Package-Manager: Portage-2.3.50, Repoman-2.3.10
  • Loading branch information
Brian Evans committed Sep 24, 2018
1 parent 5aeb578 commit aabb0e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-db/mysql/mysql-5.6.40-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ pkg_config() {

ebegin "Setting root password"
# Do this from memory, as we don't want clear text passwords in temp files
local sql="ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '${MYSQL_ROOT_PASSWORD}'"
local sql="SET PASSWORD FOR 'root'@'localhost' = PASSWORD('${MYSQL_ROOT_PASSWORD}');"
"${EROOT%/}/usr/bin/mysql" \
--no-defaults \
"--socket=${socket}" \
Expand Down
2 changes: 1 addition & 1 deletion dev-db/mysql/mysql-5.6.41.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ pkg_config() {

ebegin "Setting root password"
# Do this from memory, as we don't want clear text passwords in temp files
local sql="ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '${MYSQL_ROOT_PASSWORD}'"
local sql="SET PASSWORD FOR 'root'@'localhost' = PASSWORD('${MYSQL_ROOT_PASSWORD}');"
"${EROOT%/}/usr/bin/mysql" \
--no-defaults \
"--socket=${socket}" \
Expand Down

0 comments on commit aabb0e5

Please sign in to comment.