For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/start/migration.md.
  • 简体中文
  • 迁移指南

    迁移工具

    nacos的配置文件迁移到confkeeper

    主要迁移的是配置文件表和命名空间表

    先使用confkeeper启动一次,建完所有表

    然后运行迁移工具,并加上配置文件./confkeeper-migrate --config=config.yaml

    配置文件示例

    Tip

    其中tenant_names配置是指定需要迁移的命名空间,如果不加这个配置的话就是迁移所有命名空间

    # 数据库配置
    source:
      type: "mysql"
      mysql:
        host: "localhost"
        port: 3306
        username: "nacos"
        password: "xxx"
        database: "nacos_devtest"
        charset: "utf8mb4"
    
    target:
      type: "postgresql"
      postgresql:
        host: "localhost"
        port: 5432
        username: "postgres"
        password: "xxx"
        database: "confkeeper"
        sslmode: "disable"
    
    # 迁移配置
    migration:
      batch_size: 1000
      timeout_seconds: 300
      tenant_names:
        - "default"