Commit Graph

3 Commits

Author SHA1 Message Date
tigermren 9eb1428779 docs(sync): update docs and scripts for TiDB Cloud sync changes
- Mark DM-based sync as incompatible with TiDB Cloud Serverless
- Deprecate sync-control.sh and add warning messages
- Add new sync-data.sh script for syncing data from TiDB Cloud
- Revise README to recommend official migration methods and clarify sync instructions
- Update start.sh to remove references to DM status and control commands
- Add links to TIDB_CLOUD_MIGRATION.md and SYNC_GUIDE.md for detailed guidance
2025-10-17 01:12:56 +08:00
tigermren 8908dd34b7 feat(dm): add TLS support for TiDB Cloud in source config
- Extend source.yaml to include empty TLS security fields by default
- Detect TiDB Cloud host in init script to enable TLS configuration
- Download Let’s Encrypt root CA cert for TiDB Cloud connections
- Generate source.yaml with ssl-ca path when connecting to TiDB Cloud
- Use plain source.yaml config for non-TiDB Cloud hosts
- Ensure DM source configuration creation tolerates errors gracefully
2025-10-16 23:45:49 +08:00
tigermren 1938d26462 Initial commit: TiDB local development environment with DM
- Minimal TiDB setup in standalone mode (no PD/TiKV needed)
- TiDB Data Migration (DM) for continuous sync from test env
- Automated initialization and configuration
- Docker Compose v2 support
- Health checks and proper service dependencies
- DataGrip/MySQL client connectivity
- Comprehensive documentation and helper scripts

Features:
- Auto-sync data from test environment to local TiDB
- Multiple tables support via environment variables
- Easy sync control (start/stop/pause/resume)
- Connection testing and status monitoring
- Troubleshooting guide

Scripts:
- start.sh: Quick start environment
- status.sh: Check sync status
- sync-control.sh: Manage sync tasks
- test-connection.sh: Verify TiDB connectivity
- check-docker.sh: Verify Docker setup

Documentation:
- README.md: Main setup guide
- SYNC_GUIDE.md: Data synchronization guide
- DATAGRIP_SETUP.md: Database client setup
- DOCKER_COMPOSE_V2.md: Migration guide
- TROUBLESHOOTING.md: Common issues and solutions
2025-10-16 01:11:20 +08:00