Overview
Configure and manage Dolt database settings, server lifecycle, and version control operations. Beads uses adolt sql-server that auto-starts transparently when needed.
Syntax
Subcommands
Server Lifecycle
start
Start the Dolt SQL server for this project:.beads/.
stop
Stop the Dolt SQL server:status
Show Dolt server status:Configuration
show
Show current Dolt configuration with connection test:set
Set a configuration value:| Key | Description |
|---|---|
database | Database name (default: issue prefix or “beads”) |
host | Server host (default: 127.0.0.1) |
port | Server port (auto-detected; override if needed) |
user | MySQL user (default: root) |
data-dir | Custom dolt data directory (absolute path) |
--update-config to also write to config.yaml for team-wide defaults.
test
Test connection to Dolt server:- Server is reachable at configured host:port
- Connection can be established
- Remote connectivity (for configured remotes)
Version Control
commit
Create a Dolt commit from pending changes:bd commands. Also needed before push operations that require a clean working set.
push
Push commits to Dolt remote:DOLT_REMOTE_USER and DOLT_REMOTE_PASSWORD environment variables.
pull
Pull commits from Dolt remote:Remote Management
remote add
Add a Dolt remote (both SQL server and CLI):remote list
List configured Dolt remotes (SQL server + CLI):remote remove
Remove a Dolt remote (both SQL server and CLI):Maintenance
clean-databases
Drop stale test/polecat databases from Dolt server:testdb_*, doctest_*, doctortest_*, beads_pt*, beads_vr*, beads_t*).
killall
Kill all orphan Dolt server processes:Environment Variables
| Variable | Description |
|---|---|
BEADS_DOLT_DATABASE | Override database name |
BEADS_DOLT_HOST | Override server host |
BEADS_DOLT_PORT | Override server port |
BEADS_DOLT_USER | Override MySQL user |
BEADS_DOLT_PASSWORD | MySQL password (if needed) |
BEADS_DOLT_DATA_DIR | Override data directory |
DOLT_REMOTE_USER | Remote authentication username |
DOLT_REMOTE_PASSWORD | Remote authentication token |
Configuration Precedence
Settings are resolved in order:- Environment variables (
BEADS_DOLT_*) - highest priority - metadata.json - local overrides (gitignored)
- config.yaml - team defaults (committed)
Dolt Sync Workflows
Team Collaboration
Setup (once per developer):Backup and Recovery
Setup backup remote:Multi-Machine Sync
Machine A:Examples
View Current Configuration
Change Database Name
Configure Remote Access
Setup Custom Data Directory
Batch Commit Workflow
Setup DoltHub Remote
Troubleshoot Connection Issues
Troubleshooting
Server Connection Failed
Cause: Server not running or wrong port Solution:Remote Not Found
Cause: Remote registered in CLI but not SQL server Solution:Push Failed: Uncommitted Changes
Cause: Dolt requires clean working set Solution:Data Directory Not Found
Cause: Custom data-dir path doesn’t exist Solution:Orphan Server Processes
Cause: Server crashed or PID file lost Solution:Related Commands
bd init- Initialize with Dolt backendbd backup- Backup operations (alternative to remotes)bd doctor- Health checks including Dolt connectivitybd compact- Includes Dolt garbage collection