-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
338ae8a
commit 70b632f
Showing
6 changed files
with
53 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
test/mysql/docker-entrypoint-initdb.d/caching_sha2_password_user.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CREATE USER 'caching_sha2'@'%'; | ||
GRANT ALL PRIVILEGES ON test.* TO 'caching_sha2'@'%'; | ||
ALTER USER 'caching_sha2'@'%' IDENTIFIED /*!80000 WITH caching_sha2_password */ BY 'password'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
INSTALL PLUGIN cleartext_plugin_server SONAME 'auth_test_plugin.so'; | ||
CREATE USER 'cleartext_user'@'%'; | ||
GRANT ALL PRIVILEGES ON test.* TO 'cleartext_user'@'%'; | ||
ALTER USER 'cleartext_user'@'%' IDENTIFIED WITH cleartext_plugin_server BY 'password'; |
7 changes: 7 additions & 0 deletions
7
test/mysql/docker-entrypoint-initdb.d/native_password_user.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE USER 'native'@'%'; | ||
GRANT ALL PRIVILEGES ON test.* TO 'native'@'%'; | ||
ALTER USER 'native'@'%' IDENTIFIED WITH mysql_native_password BY ''; | ||
// add back these | ||
// change usernames | ||
// check if user exists for create | ||
// only delete user if we created it |