You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/tests.yml
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,17 +17,25 @@ jobs:
17
17
MYSQL_DATABASE: mysqlreplication_test
18
18
ports:
19
19
- 3306/tcp
20
+
command: [
21
+
'--log_bin=binlog',
22
+
'--max_binlog_size=8M',
23
+
'--binlog_format=row',
24
+
'--server-id=1',
25
+
'--binlog_rows_query_log_events=ON'
26
+
]
20
27
21
28
steps:
22
29
- name: Checkout
23
30
uses: actions/checkout@v2
24
31
25
-
- name: Start mysql service
32
+
- name: Verify Connection
33
+
env:
34
+
PORT: ${{ job.services.mysql.ports[3306] }}
26
35
run: |
27
-
echo -e "\n[mysqld]\nserver-id=1\nbinlog_format=row\nlog_bin=/var/log/mysql/mysql-bin.log\nbinlog_rows_query_log_events=ON" | sudo tee -a /etc/mysql/my.cnf
28
-
sudo /etc/init.d/mysql start
29
-
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql -proot
30
-
mysql -h 127.0.0.1 -P 32768 -e 'SHOW VARIABLES LIKE "version%";' -u root -proot
36
+
while ! mysqladmin ping -h"127.0.0.1" -P"$PORT" --silent; do
0 commit comments