File tree Expand file tree Collapse file tree 6 files changed +16
-3
lines changed Expand file tree Collapse file tree 6 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
- - fix auth problems with mysql 8.0
2
-
3
1
- worker: improve sql execution cmd:
4
2
+ allow it to take sql snippet from file
5
3
+ allow it to pick a set of desired servers
6
4
+ at end show results + time & mem taken for each db
7
5
6
+ - add travis testing
7
+
8
8
- worker: improve profile of 'user' account (esp: add APP_ENV and APP_DEBUG env vars)
9
9
10
10
- web: allow to insert sql snippet, pick the desired servers, run it and show results
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ Version 0.2 (unreleased)
3
3
4
4
- Fixed: sql commands executed against mariadb would be reported as failed
5
5
6
+ - Fixed: auth problems with mysql 8.0
7
+
6
8
7
9
Version 0.1
8
10
-----------
Original file line number Diff line number Diff line change
1
+ [mysqld]
1
2
# avoid connection errors "Authentication plugin 'caching_sha2_password' cannot be loaded"
2
3
default_authentication_plugin =mysql_native_password
Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ trap clean_up TERM
49
49
50
50
/entrypoint.sh $@ &
51
51
52
+ # Fix the auth method for the 2 users which we create by default, to make it easier to connect for older clients
53
+ # @todo is there a better method than sleeping for a while to find out when mysql is fully functional and listening on network?
54
+ sleep 5
55
+ mysql -h 127.0.0.1 -u root -p${MYSQL_ROOT_PASSWORD} -e " ALTER USER '${MYSQL_USER} '@'%' IDENTIFIED WITH mysql_native_password BY '${MYSQL_PASSWORD} ';"
56
+ mysql -h 127.0.0.1 -u root -p${MYSQL_ROOT_PASSWORD} -e " ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '${MYSQL_ROOT_PASSWORD} ';"
57
+
52
58
echo " [` date` ] Bootstrap finished" | tee /var/run/bootstrap_ok
53
59
54
60
tail -f /dev/null &
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Fix the auth method for the 2 users which we create by default, to make it easier to connect for older clients
4
+ mysql -h 127.0.0.1 -u root -p${MYSQL_ROOT_PASSWORD} -e " ALTER USER '${MYSQL_USER} '@'%' IDENTIFIED WITH mysql_native_password BY '${MYSQL_PASSWORD} ';"
5
+ # mysql -h 127.0.0.1 -u root -p${MYSQL_ROOT_PASSWORD} -e "ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '${MYSQL_ROOT_PASSWORD}';"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments