ykjxx commented on issue #20019:
URL: 
https://github.com/apache/shardingsphere/issues/20019#issuecomment-1210064570

   Hi @RaigorJiang 
   my config:
   
![image](https://user-images.githubusercontent.com/52477571/183792838-0b7e3988-986f-4579-96f8-1cc94593294e.png)
   [db1, replica1] and [DB2, replica2] are two groups of master-slave 
Databases. I hope to route these two groups of Databases through Hin SQL and 
realize read-write separation
   excute-sql: /* ShardingSphere hint: dataSourceName=db_2 */ select * from 
sm_project_img;
   expect: It is expected that the above SQL execute on the slave 
dabatase(replica_2)
   actual:  this sql execute on the master database(db_2)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to