Apache ShardingSphere 中文文档 5.2.0`ShardingAlgorithm` 接口定义的算法实现类。 2. 在项目 `resources` 目录下创建 `META-INF/services` 目录。 3. 在 `META-INF/services` 目录下新建文件 `org.apache.shardingsphere.sharding.spi. ShardingAlgorithm` 4. 将实现类的全限定类名写入至文件 `org.apache.shardingsphere --------------- -------------------+------------------------------------------------------+ 7.2. 新建配置(可选)。 不配置的话有默认值。 完整配置 DistSQL 示例: CREATE MIGRATION PROCESS CONFIGURATION ( READ( WORKER_THREAD=40 IF EXISTS migration_ds_12; CREATE DATABASE migration_ds_12 DEFAULT CHARSET utf8; 操作步骤 1. 在 proxy 新建逻辑数据库并配置好资源和规则。 CREATE DATABASE sharding_db; USE sharding_db ADD RESOURCE ds_2 ( URL="jdbc:mysql://1270 码力 | 449 页 | 5.85 MB | 1 年前3
Apache ShardingSphere 中文文档 5.4.1`ShardingAlgorithm` 接口定义的算法实现类。 2. 在项目 `resources` 目录下创建 `META-INF/services` 目录。 3. 在 `META-INF/services` 目录下新建文件 `org.apache.shardingsphere.sharding.spi. ShardingAlgorithm` 4. 将实现类的全限定类名写入至文件 `org.apache.shardingsphere IF EXISTS migration_ds_12; CREATE DATABASE migration_ds_12 DEFAULT CHARSET utf8; 操作步骤 1. 在 proxy 新建逻辑数据库并配置好存储单元和规则。 CREATE DATABASE sharding_db; USE sharding_db REGISTER STORAGE UNIT ds_2 ( URL="jdbc:mysql://127 migration_ds_11; DROP DATABASE IF EXISTS migration_ds_12; CREATE DATABASE migration_ds_12; 操作步骤 1. 在 proxy 新建逻辑数据库并配置好存储单元和规则。 CREATE DATABASE sharding_db; \c sharding_db REGISTER STORAGE UNIT ds_2 ( URL=0 码力 | 530 页 | 4.49 MB | 1 年前3
Apache ShardingSphere 中文文档 5.3.2`ShardingAlgorithm` 接口定义的算法实现类。 2. 在项目 `resources` 目录下创建 `META-INF/services` 目录。 3. 在 `META-INF/services` 目录下新建文件 `org.apache.shardingsphere.sharding.spi. ShardingAlgorithm` 4. 将实现类的全限定类名写入至文件 `org.apache.shardingsphere DEFAULT CHARSET utf8; 9.2. ShardingSphere-Proxy 342 Apache ShardingSphere document 操作步骤 1. 在 proxy 新建逻辑数据库并配置好存储单元和规则。 CREATE DATABASE sharding_db; USE sharding_db REGISTER STORAGE UNIT ds_2 ( URL="jdbc:mysql://127 migration_ds_11; DROP DATABASE IF EXISTS migration_ds_12; CREATE DATABASE migration_ds_12; 操作步骤 1. 在 proxy 新建逻辑数据库并配置好存储单元和规则。 CREATE DATABASE sharding_db; \c sharding_db REGISTER STORAGE UNIT ds_2 ( URL=0 码力 | 508 页 | 4.44 MB | 1 年前3
Apache ShardingSphere v5.5.0 中文文档`ShardingAlgorithm` 接口定义的算法实现类。 2. 在项目 `resources` 目录下创建 `META-INF/services` 目录。 3. 在 `META-INF/services` 目录下新建文件 `org.apache.shardingsphere.sharding.spi. ShardingAlgorithm` 4. 将实现类的全限定类名写入至文件 `org.apache.shardingsphere IF EXISTS migration_ds_12; CREATE DATABASE migration_ds_12 DEFAULT CHARSET utf8; 操作步骤 1. 在 proxy 新建逻辑数据库并配置好存储单元和规则。 CREATE DATABASE sharding_db; USE sharding_db REGISTER STORAGE UNIT ds_2 ( URL="jdbc:mysql://127 migration_ds_11; DROP DATABASE IF EXISTS migration_ds_12; CREATE DATABASE migration_ds_12; 操作步骤 1. 在 proxy 新建逻辑数据库并配置好存储单元和规则。 CREATE DATABASE sharding_db; \c sharding_db REGISTER STORAGE UNIT ds_2 ( URL=0 码力 | 557 页 | 4.61 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.2ShardingAlgorithm 接口定义的算法实现类。 2. 在项目 resources 目录下创建 META-INF/services 目录。 3. 在 META-INF/services 目录下新建文件 org.apache.shardingsphere.sharding.spi. ShardingAlgorithm 4. 将 实 现 类 的 绝 对 路 径 写 入 至 文 件 org.apache 手动模式下,数据校验、切换配置等操作可以手动执行。详情请参见:RAL # 弹性伸缩。 本示例演示从已有 MySQL 数据库迁移到 proxy。 除了明确说明在 MySQL 执行的 SQL,其他都是在 proxy 执行。 新建源端库 已有数据不需要这个步骤。这里是模拟一个源端库用于测试。 在 MySQL 执行 SQL: DROP DATABASE IF EXISTS scaling_ds_0; CREATE DATABASE0 码力 | 446 页 | 4.67 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.1ShardingAlgorithm 接口定义的算法实现类。 2. 在项目 resources 目录下创建 META-INF/services 目录。 3. 在 META-INF/services 目录下新建文件 org.apache.shardingsphere.sharding.spi. ShardingAlgorithm 4. 将 实 现 类 的 绝 对 路 径 写 入 至 文 件 org.apache0 码力 | 409 页 | 4.47 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.0ShardingAlgorithm 接口定义的算法实现类。 2. 在项目 resources 目录下创建 META-INF/services 目录。 3. 在 META-INF/services 目录下新建文件 org.apache.shardingsphere.sharding.spi. ShardingAlgorithm 4. 将 实 现 类 的 绝 对 路 径 写 入 至 文 件 org.apache0 码力 | 406 页 | 4.40 MB | 1 年前3
共 7 条
- 1













