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
I first set up MySQL on port 3306 and created a database named dis_database0. Then, I set up MySQL2 on port 3308 and created another database named dis_database1. After that, I used ShardingSphere (port 3307) to connect these two databases. When I created the table HuangHStu in ShardingSphere, corresponding sharded tables were automatically generated in both databases. However, when executing an INSERT statement, an error occurs. Please help me resolve this issue.
Question
I first set up MySQL on port 3306 and created a database named dis_database0. Then, I set up MySQL2 on port 3308 and created another database named dis_database1. After that, I used ShardingSphere (port 3307) to connect these two databases. When I created the table HuangHStu in ShardingSphere, corresponding sharded tables were automatically generated in both databases. However, when executing an INSERT statement, an error occurs. Please help me resolve this issue.
Version information
shardingsphere:apache-shardingsphere-5.4.1
mysql:8.0.40
config-sharding.yaml
Series of operations
I executed the following CREATE TABLE operation in sharding_db.
The subsequent database state is shown in the image.
Next, I executed the following
INSERT
operation inHuangHStu
withinsharding_db
.An error occurred while executing the INSERT operation.
Error details
The text was updated successfully, but these errors were encountered: