1. Configure sharding rule

Edit %SHARDING_PROXY_HOME%\conf\config.yaml. More details please reference Configuration Manual.

If you want use self-defined configuration fileļ¼Œplease create your configuration file in %SHARDING_PROXY_HOME%\conf\ and then start server as follows.

2. Start server

  • Use default configuration to start
${sharding-proxy}\bin\ ${port}
  • Set port to start
${sharding-proxy}\bin\ ${port}
  • Set port and configuration file name to start
${sharding-proxy}\bin\ ${port} ${file_name}