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
mysql -P9315 -h0 -e "drop table if exists t; create table t(s string); insert into t values(1, 'a'); flush ramchunk t"; echo $?
12
+
mysql -P9315 -h0 -e "unfreeze t; drop table if exists t; create table t(a string); insert into t values(1, 'a'); flush ramchunk t; freeze t; update t set a='b' where id = 1;" &
13
13
––– output –––
14
-
0
15
-
––– input –––
16
-
mysql -P9315 -h0 -e "select * from t;"
17
-
––– output –––
18
-
+------+------+
19
-
| id | s |
20
-
+------+------+
21
-
| 1 | a |
22
-
+------+------+
14
+
[%{NUMBER}] %{NUMBER}
23
15
––– input –––
24
16
(rm -f /tmp/update.sql; for n in `seq 1 10000`; do echo "update t set s='b' where id=1;" >> /tmp/update.sql; done; nohup sh -c "while true; do mysql -P9315 -h0 < /tmp/update.sql | break; done" &>/dev/null &) 2>/dev/null
rm -f /tmp/update.sql; for n in `seq 1 100`; do echo "UPDATE name SET gender='updated' WHERE id=$n;" >> /tmp/update.sql; done; mysql -P1306 -h0 -e "source /tmp/update.sql"
160
+
––– output –––
161
+
––– input –––
162
+
sleep 10; mysql -P1306 -h0 -e "SELECT * FROM name ORDER BY id ASC LIMIT 10;"
57
163
––– output –––
58
-
0
59
164
––– input –––
60
-
mysql -P9315 -h0 -e "DESCRIBE t"
165
+
sleep 1; if timeout 5 mysql -P1306 -h0 -e "SELECT * FROM name ORDER BY id ASC LIMIT 1"; then echo 'Query executed (issue fixed)'; else echo 'Query blocked (issue not fixed)'; fi
61
166
––– output –––
62
-
+-------+--------+------------+
63
-
| Field | Type | Properties |
64
-
+-------+--------+------------+
65
-
| id | bigint | |
66
-
| s | string | |
67
-
+-------+--------+------------+
68
167
––– input –––
69
-
mysql -P9315 -h0 -e "UPDATE t SET s='с' WHERE id=1; FLUSH RAMCHUNK t"; echo $?
0 commit comments