Horriber opened a new issue, #33252:
URL: https://github.com/apache/shardingsphere/issues/33252

   1.第一步 添加注册单元
    REGISTER STORAGE UNIT IF NOT EXISTS ds_2 (
       -> HOST="xxx",
       -> PORT=xxx,
       -> DB="xxx",
       -> USER="root",
       -> PASSWORD="xxx",
       -> PROPERTIES("maximumPoolSize"=10)
       -> );
   2.使用sql hint进行查询
   /* SHARDINGSPHERE_HINT: DATA_SOURCE_NAME = ds_2 */SELECT * from pay_order;
   3.移除注册单元
   UNREGISTER STORAGE UNIT ds_2;
   ERROR 10103 (44000): Storage unit 'ds_2' still used by 'SingleRule'.
   


-- 
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