Skip to content

Commit 774053c

Browse files
committed
Update kokoro install/exercise for MySQL LTS
1 parent 6b838d9 commit 774053c

File tree

2 files changed

+6
-6
lines changed
  • integration_test/third_party_apps_test/applications/mysql

2 files changed

+6
-6
lines changed

integration_test/third_party_apps_test/applications/mysql/debian_ubuntu/install

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ set -e
33
sudo apt update
44
sudo apt install -y wget
55

6-
wget --no-verbose https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb
7-
sudo dpkg -i mysql-apt-config_0.8.29-1_all.deb
6+
wget --no-verbose https://dev.mysql.com/get/mysql-apt-config_0.8.35-1_all.deb
7+
sudo dpkg -i mysql-apt-config_0.8.35-1_all.deb
88
sudo apt update
99
sudo debconf-set-selections <<< 'mysql-community-server mysql-server/default-auth-override select Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)'
1010

integration_test/third_party_apps_test/applications/mysql/exercise

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ password='Ss123%321'
77
EOF
88

99
# initialize and start replation source
10-
sudo mysqld --defaults-group-suffix=2 --initialize
11-
nohup sudo mysqld --defaults-group-suffix=2 2>/dev/null >/dev/null </dev/null &
10+
sudo mysqld --defaults-group-suffix=2 --initialize --mysql-native-password=ON
11+
nohup sudo mysqld --defaults-group-suffix=2 --mysql-native-password=ON 2>/dev/null >/dev/null </dev/null &
1212
# give it time to start, since we put it in the background
1313
sleep 10
1414

@@ -30,7 +30,7 @@ sudo mysql --defaults-extra-file=config-user -S /var/run/mysqld/mysql2.sock -Bse
3030
sudo mysqldump --defaults-extra-file=config-user -S /var/run/mysqld/mysql2.sock --all-databases --source-data > /tmp/dbdump.sql
3131

3232
# Capture status to seed replica
33-
raw_status=$(sudo mysql --defaults-extra-file=config-user -S /var/run/mysqld/mysql2.sock -Bse "SHOW MASTER STATUS;")
33+
raw_status=$(sudo mysql --defaults-extra-file=config-user -S /var/run/mysqld/mysql2.sock -Bse "SHOW BINARY LOG STATUS;")
3434
read -r logfile logpos <<< $raw_status
3535

3636
# Dump data from source into replica
@@ -46,4 +46,4 @@ sudo mysql --defaults-extra-file=config-user -Bse "SET GLOBAL long_query_time =
4646
sudo mysql --defaults-extra-file=config-user -Bse "SET GLOBAL slow_query_log = 1"
4747
sudo mysql --defaults-extra-file=config-user -Bse "SET GLOBAL general_log = 'ON'"
4848

49-
sudo mysql --defaults-extra-file=config-user -Bse "select table_catalog, table_schema, table_name from information_schema.tables"
49+
sudo mysql --defaults-extra-file=config-user -Bse "select table_catalog, table_schema, table_name from information_schema.tables"

0 commit comments

Comments
 (0)