You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "RaigorJiang (via GitHub)" <gi...@apache.org> on 2024/12/13 02:04:55 UTC

[I] "ALL PRIVILEGES", "ON xxx.*" is not recognized during SELECT privilege verification [shardingsphere]

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

   ## Bug Report
   Related to #32044
   
   ### Which version of ShardingSphere did you use?
   5.5.2-SNAPSHOT master f23d90899da4ae25037b4201bf1ddbe17296743e
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   The user has sufficient privilege and register storage unit should succeed
   
   ### Actual behavior
   Missing required privilege(s) `SELECT ON DATABASE`
   
   ### Reason analyze (If you can)
   No match for "ALL PRIVILEGES", "ON xxx.*"
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   1. Create mysql user with privilege
   ```sql
   CREATE USER 'jeffrey' IDENTIFIED BY '123456';
   
   grant all privileges on demo_ds_0.* to 'jeffrey'@'%';
   
   show grants for 'jeffrey'@'%';
   ```
   2. Register storage unit in Proxy
   ```sql
   REGISTER STORAGE UNIT ds_0 (
       URL="jdbc:mysql://127.0.0.1:3306/demo_ds_0?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true",
       USER="jeffrey",
       PASSWORD="123456",
       PROPERTIES("maximumPoolSize"=10)
   );
   ```
   3. error
   <img width="941" alt="image" src="https://github.com/user-attachments/assets/643c34e1-0353-414e-a780-427f22c1951c" />
   
   
   


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


Re: [I] "ALL PRIVILEGES", "ON xxx.*" is not recognized during SELECT privilege verification [shardingsphere]

Posted by "taojintianxia (via GitHub)" <gi...@apache.org>.
taojintianxia closed issue #34036: "ALL PRIVILEGES", "ON xxx.*" is not recognized during SELECT privilege verification
URL: https://github.com/apache/shardingsphere/issues/34036


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