You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/11/29 07:48:21 UTC

[GitHub] [shardingsphere] wsm12138 opened a new issue, #22499: Can we provide check for configuration of `server.yaml`?

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

   ## Feature Request
   
   Can we provide check for  configuration of  `server.yaml`?
   Now i can config wrong value for some key.
   It is obviously not true.
   
   ### Is your feature request related to a problem?
   no 
   ### Describe the feature you would like.
   ```
   [root@localhost 1129]# mysql -uroot -proot -P3333 -h192.168.10.23
   mysql: [Warning] Using a password on the command line interface can be insecure.
   Welcome to the MySQL monitor.  Commands end with ; or \g.
   Your MySQL connection id is 1
   Server version: 5.7.22-ShardingSphere-Proxy 5.2.2-SNAPSHOT-34c5cba
   
   Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
   
   Oracle is a registered trademark of Oracle Corporation and/or its
   affiliates. Other names may be trademarks of their respective
   owners.
   
   Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
   
   mysql> SHOW TRANSACTION RULE;
   +--------------+---------------+-------+
   | default_type | provider_type | props |
   +--------------+---------------+-------+
   | XA           | testasdasd    |       |
   +--------------+---------------+-------+
   1 row in set (0.26 sec)
   
   mysql> ^DBye
   [root@localhost 1129]# cat conf/server.yaml | grep -v ^# | grep -v ^$
   authority:
     users:
       - user: root@%
         password: root
       - user: sharding
         password: sharding
     privilege:
       type: ALL_PERMITTED
   transaction:
     defaultType: XA
     providerType: testasdasd
   sqlParser:
     sqlCommentParseEnabled: true
     sqlStatementCache:
       initialCapacity: 1000
       maximumSize: 55535
     parseTreeCache:
       initialCapacity: 28
       maximumSize: 1000
   ```
   ![dSF8V2ey8v](https://user-images.githubusercontent.com/86462784/204469186-1817b968-b90f-4750-bb6f-a61e73591247.jpg)
   


-- 
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] sandynz commented on issue #22499: Can we provide check for configuration of `server.yaml`?

Posted by GitBox <gi...@apache.org>.
sandynz commented on issue #22499:
URL: https://github.com/apache/shardingsphere/issues/22499#issuecomment-1342291073

   Hi @wsm12138 , thanks for your suggestion.
   
   We could try to verify global rule.
   


-- 
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] RaigorJiang commented on issue #22499: Can we provide check for configuration of `server.yaml`?

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

   Good suggestion.


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