TeslaCN opened a new pull request #14348:
URL: https://github.com/apache/shardingsphere/pull/14348
Fixes #14115.
Changes proposed in this pull request:
- Add `-v`, `--version` to Proxy startup scripts.
- Add git commit informations if available.
Built from source codes without `.git` directory:
```
root@0096b3faaf11:/opt/shardingsphere-proxy# bin/start.sh -v
ShardingSphere-5.0.1-SNAPSHOT
root@0096b3faaf11:/opt/shardingsphere-proxy# bin/start.sh --version
ShardingSphere-5.0.1-SNAPSHOT
```
Build from version controlled sources codes:
```
☺ bin/start.sh --version
14115 88d06dbeae
ShardingSphere-5.0.1-SNAPSHOT
Commit ID: ed1d194483a83c28f826c08e611eca30bbba6c46
Commit Message: Refactor ShardingSphereVersion
Branch: 14115
Build time: 2021-12-27T16:56:30+0800
```
Access Proxy with MySQL client:
```
~/projects/shardingsphere ‹14115*› $ mysql -h 127.0.0.1 -P 13306 -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 8.0.27-ShardingSphere-Proxy 5.0.1-SNAPSHOT-88d06db
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
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>
```
--
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]