You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "strongduanmu (via GitHub)" <gi...@apache.org> on 2023/03/16 06:20:04 UTC

[GitHub] [shardingsphere] strongduanmu opened a new issue, #24642: Execute `select count(*) from information_schema.SCHEMATA;` error when I only config readwrite-splitting

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

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   https://github.com/apache/shardingsphere/commit/2ec734df909b32651aa1f7aebd8ea169e1c03738
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   Execute `select count(*) from information_schema.STATISTICS;` successfully when I only config readwrite-splitting
   
   ### Actual behavior
   
   ![img_v2_2e1f70c5-a06c-47c8-a04f-747229924c4g](https://user-images.githubusercontent.com/10829171/225531812-613c7842-d388-411f-adbe-b4c82699e6b1.jpg)
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] tristaZero closed issue #24642: Execute `select count(*) from information_schema.SCHEMATA;` error when I only config readwrite-splitting

Posted by "tristaZero (via GitHub)" <gi...@apache.org>.
tristaZero closed issue #24642: Execute `select count(*) from information_schema.SCHEMATA;` error when I only config readwrite-splitting
URL: https://github.com/apache/shardingsphere/issues/24642


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] strongduanmu commented on issue #24642: Execute `select count(*) from information_schema.SCHEMATA;` error when I only config readwrite-splitting

Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu commented on issue #24642:
URL: https://github.com/apache/shardingsphere/issues/24642#issuecomment-1471426031

   <img width="553" alt="image" src="https://user-images.githubusercontent.com/10829171/225540705-111297a9-160b-4ad0-9bd5-e1fcfbfee24f.png">
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] strongduanmu commented on issue #24642: Execute `select count(*) from information_schema.SCHEMATA;` error when I only config readwrite-splitting

Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu commented on issue #24642:
URL: https://github.com/apache/shardingsphere/issues/24642#issuecomment-1471424308

   After the pr merged, we can use following sql to register datasource for system database, and then execute system table select statement.
   
   ```
   USE information_schema;
   
   REGISTER STORAGE UNIT information_schema (
       URL="jdbc:mysql://127.0.0.1:3306/information_schema?clusterInstanceHostPattern=?.cluster-cpmlacsg9h47.rds.cn-northwest-1.amazonaws.com.cn",
       USER="root",
       PASSWORD="123456",
       PROPERTIES("minPoolSize"="1","maxPoolSize"="20","idleTimeout"="60000", "connectionTimeoutMilliseconds"="30000")
   );
   
   USE mysql;
   
   REGISTER STORAGE UNIT mysql (
       URL="jdbc:mysql://127.0.0.1:3306/mysql?clusterInstanceHostPattern=?.cluster-cpmlacsg9h47.rds.cn-northwest-1.amazonaws.com.cn",
       USER="root",
       PASSWORD="123456",
       PROPERTIES("minPoolSize"="1","maxPoolSize"="20","idleTimeout"="60000", "connectionTimeoutMilliseconds"="30000")
   );
   
   USE performance_schema;
   
   REGISTER STORAGE UNIT performance_schema (
       URL="jdbc:mysql://127.0.0.1:3306/performance_schema?clusterInstanceHostPattern=?.cluster-cpmlacsg9h47.rds.cn-northwest-1.amazonaws.com.cn",
       USER="root",
       PASSWORD="123456",
       PROPERTIES("minPoolSize"="1","maxPoolSize"="20","idleTimeout"="60000", "connectionTimeoutMilliseconds"="30000")
   );
   
   USE sys;
   
   REGISTER STORAGE UNIT sys (
       URL="jdbc:mysql://127.0.0.1:3306/sys?clusterInstanceHostPattern=?.cluster-cpmlacsg9h47.rds.cn-northwest-1.amazonaws.com.cn",
       USER="root",
       PASSWORD="123456",
       PROPERTIES("minPoolSize"="1","maxPoolSize"="20","idleTimeout"="60000", "connectionTimeoutMilliseconds"="30000")
   );
   ```


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org