Kubernetes 版本:v1.16.3
linux版本:7.3.1611
在 kubernetes 上启动 Vitess 集群,然后登录到 VTGate 并创建表
./mysql -h 127.0.0.1 -P 15306 -uuser
mysql> CREATE TABLE sbtest1( id INTEGER NOT NULL AUTO_INCREMENT, k INTEGER DEFAULT '0' NOT NULL, c CHAR(120) DEFAULT '' NOT NULL, pad CHAR(60) DEFAULT '' NOT NULL, PRIMARY KEY (id) );
Query OK, 0 rows affected (0.32 sec)
mysql> show tables;
+--------------------+
| Tables_in_commerce |
+--------------------+
| sbtest1 |
+--------------------+
1 row in set (0.00 sec)
mysql> select * from sbtest1;
ERROR 1105 (HY000): table sbtest1 not found
show tables;
显示表 sbtest1 已经存在,但是当从中选择时,会发生错误。