欢迎来到思维库

思维库

Atlas 分布式版重磅来袭!

时间:2025-11-05 07:29:18 出处:应用开发阅读(143)

Atlas 分布式版重磅来袭!
复制mysql> begin;  Query OK,布式版重磅袭 0 rows affected (0.00 sec)  mysql> insert into sharding_test(id, name, age) values(1, test, 0);  Query OK, 1 row affected (0.00 sec)  mysql> insert into sharding_test(id, name, age) values(1500, test, 0);  ERROR 1179 (sqlst): Proxy Warning - sharding dbgroup is in trans, transaction will not work across multi dbgroup  mysql> /*master*/select * from sharding_test where id < 1000;  +----+------+------+----------+----------+  | id | name | age | birthday | nickname |  +----+------+------+----------+----------+  | 1 | test | 0 | NULL | NULL |  +----+------+------+----------+----------+  1 row in set (0.00 sec)  mysql> /*master*/select * from sharding_test;  ERROR 1179 (sqlst): Proxy Warning - sharding dbgroup is in trans, transaction will not work across multi dbgroup  mysql> commit;  Query OK, 0 rows affected (0.00 sec)  mysql> /*master*/select * from sharding_test;  +----+------+------+----------+----------+  | id | name | age | birthday | nickname |  +----+------+------+----------+----------+  | 1 | test | 0 | NULL | NULL |  +----+------+------+----------+----------+  1 row in set (0.00 sec)  1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.

分享到:

温馨提示:以上内容和图片整理于网络,仅供参考,希望对您有帮助!如有侵权行为请联系删除!

友情链接: