Skip to content

Updates -- fix pt for show replica command change, and mysql default … #403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

saikumar-vs
Copy link
Contributor

…create user password plugin

fi
pt_ver=$(pt-table-checksum --version 2>/dev/null | awk '{print $NF}')
# Version-specific requirements
if [ "$VERSION" -ge "080000" ] || [ "$VERSION" -lt "080400" ] && [ $(normalize_version "$pt_ver") -lt $(normalize_version "3.0.9") ]; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be [ "$VERSION" -ge "080000" ] && [ "$VERSION" -lt "080400" ]

if [ "$VERSION_NUMERIC" -ge "$TARGET_VERSION" ]; then
$PS_DIR/bin/mysql -A -uroot -S $SOCKET -e "CREATE USER sysbench@'%' IDENTIFIED BY 'test';"
else
$PS_DIR/bin/mysql -A -uroot -S $SOCKET -e "CREATE USER sysbench@'%' IDENTIFIED WITH mysql_native_password BY 'test';"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For all 80 versions and above we are going without specifying any plugin which shall use the default plugin, this else condition will come into effect in run when it's less than 8.0 (ie, 5.7). Even in case of 5.7 we can create user without specifying the auth plugin and by default it would use mysql_native_password. IMO, just removing WITH mysql_native_password is enough from the create user query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants