drop table if exists t1,t2;
#
# Test discovery of s3
#
create table t1 (a int, b int) engine=aria select seq as a, seq+10 as b from seq_1_to_10;
alter table t1 engine=s3;
#
# Check discovery by select
#
flush tables;
select * from t1 limit 1;
a b 111
#
# Check if changes to .frm is copied to S3
#
alter table t1 change column b c int not null;
flush tables;
select * from t1 limit 1;
a c 111
#
# Check if SHOW TABLES finds the S3 tables
#
create table t2 (a int, b int) engine=aria select seq as a, seq+10 as b from seq_1_to_10;
alter table t2 engine=s3;
flush tables;
SHOW TABLES;
Tables_in_database
t1
t2
drop table t2;
#
# Check if DROP TABLE works with discovery
#
select count(*) from t1;
count(*) 10
flush tables;
drop table t1;
select count(*), sum(a) from t1; ERROR42S02: Table 'database.t1' doesn't exist
#
# Check if S3 detects that the .frm is too old
#
create table t1 (a int, b int) engine=aria select seq as a, seq+10 as b from seq_1_to_10;
alter table t1 engine=s3;
alter table t1 add column c int, engine=s3;
flush tables;
select * from t1 limit 1;
a b c 111 NULL
flush tables;
select * from t1 limit 1;
a b c 111 NULL
drop table t1;
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-10-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.