提交 f4dab481 编写于 作者: T terrymanu

update sharding-proxy-quick-start

上级 8c00386d
......@@ -6,27 +6,27 @@ weight = 2
## 1. 规则配置
编辑`%SHARDING_PROXY_HOME%\conf\config-xxx.yaml`。详情请参见[配置手册](/cn/manual/sharding-proxy/configuration/)
编辑`%SHARDING_PROXY_HOME%\conf\config-xxx.yaml`。详情请参见[配置手册](/cn/manual/shardingsphere-proxy/configuration/)
编辑`%SHARDING_PROXY_HOME%\conf\server.yaml`。详情请参见[配置手册](/cn/manual/sharding-proxy/configuration/)
编辑`%SHARDING_PROXY_HOME%\conf\server.yaml`。详情请参见[配置手册](/cn/manual/shardingsphere-proxy/configuration/)
## 2. 引入依赖
如果后端连接PostgreSQL数据库,不需要引入额外依赖。
如果后端连接MySQL数据库,需要下载[MySQL Connector/J](https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.47.tar.gz)
解压缩后,将mysql-connector-java-5.1.47.jar拷贝到${sharding-proxy}\lib目录。
解压缩后,将mysql-connector-java-5.1.47.jar拷贝到${shardingsphere-proxy}\lib目录。
## 3. 启动服务
* 使用默认配置项
```sh
${sharding-proxy}\bin\start.sh
${shardingsphere-proxy}\bin\start.sh
```
* 配置端口
```sh
${sharding-proxy}\bin\start.sh ${port}
${shardingsphere-proxy}\bin\start.sh ${port}
```
......@@ -4,29 +4,29 @@ title = "ShardingSphere-Proxy"
weight = 2
+++
## 1. Sharding Rule Configuration
## 1. Rule Configuration
Edit `%SHARDING_PROXY_HOME%\conf\config-xxx.yaml`. Please refer to [Configuration Manual](/en/manual/sharding-proxy/configuration/) for more details.
Edit `%SHARDING_PROXY_HOME%\conf\config-xxx.yaml`. Please refer to [Configuration Manual](/en/manual/shardingsphere-proxy/configuration/) for more details.
Edit `%SHARDING_PROXY_HOME%\conf\server.yaml`. Please refer to [Configuration Manual](/en/manual/sharding-proxy/configuration/) for more details.
Edit `%SHARDING_PROXY_HOME%\conf\server.yaml`. Please refer to [Configuration Manual](/en/manual/shardingsphere-proxy/configuration/) 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](https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.47.tar.gz)
and decompress, then copy mysql-connector-java-5.1.47.jar to ${sharding-proxy}\lib directory.
and decompress, then copy mysql-connector-java-5.1.47.jar to ${shardingsphere-proxy}\lib directory.
## 3. Start Server
* Use default configuration to start
```sh
${sharding-proxy}\bin\start.sh
${shardingsphere-proxy}\bin\start.sh
```
* Configure the port
```sh
${sharding-proxy}\bin\start.sh ${port}
${shardingsphere-proxy}\bin\start.sh ${port}
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册