ShardingSphere 4.x Sharding-Proxy quick-start

Apache ShardingSphere
1 min readJul 24, 2020

--

1. Sharding Rule Configuration

Edit %SHARDING_PROXY_HOME%\conf\config-xxx.yaml. Please refer to Configuration Manual for more details.

Edit %SHARDING_PROXY_HOME%\conf\server.yaml. Please refer to Configuration Manual for more details.

2. Introduce Dependencies

If the backend database is PostgreSQL, there’s no need for additional dependencies.

If the backend database is MySQL, download MySQL Connector/J and decompress, then copy mysql-connector-java-5.1.47.jar to ${sharding-proxy}\lib directory.

3. Start Server

  • Use default configuration to start
${sharding-proxy}\bin\start.sh
  • Configure the port
${sharding-proxy}\bin\start.sh ${port}

--

--

Apache ShardingSphere
Apache ShardingSphere

Written by Apache ShardingSphere

Distributed SQL transaction & query engine for data sharding, scaling, encryption, and more - on any database. https://linktr.ee/ApacheShardingSphere

No responses yet