Skip to content

Commit a179240

Browse files
committed
Simplify changing password mechanism steps.
1 parent 2c5b865 commit a179240

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/check.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,14 @@ jobs:
7979
# from `caching_sha2_password` that is the default in MySQL 8 because
8080
# Connector/J 5.x does not support `caching_sha2_password`.
8181
# TODO: Start testing with `caching_sha2_password` with Connector/J 8.x.
82-
- name: Show password plugins
83-
run: mysql -h 127.0.0.1 --port 3306 -uroot -proot -e "SELECT user, host, plugin FROM mysql.user;"
84-
- name: Change password mechanism1 (root@localhost)
82+
#
83+
# See also: https://dev.mysql.com/doc/refman/8.4/en/account-names.html
84+
- name: Change password (root@localhost)
8585
run: mysql -h 127.0.0.1 --port 3306 -uroot -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';"
86-
- name: Change password mechanism2 (root@%)
86+
- name: Change password (root@%)
8787
run: mysql -h 127.0.0.1 --port 3306 -uroot -proot -e "ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';"
8888
- name: FLUSH PRIVILEGES
8989
run: mysql -h 127.0.0.1 --port 3306 -uroot -proot -e "FLUSH PRIVILEGES;"
90-
- name: Show password plugins2
91-
run: mysql -h 127.0.0.1 --port 3306 -uroot -proot -e "SELECT user, host, plugin FROM mysql.user;"
92-
#
93-
# End caching_sha2_password workaround.
94-
#
9590
- name: Build with testing
9691
run: ./gradlew --stacktrace :embulk-output-mysql:check
9792
env:

0 commit comments

Comments
 (0)