tidbstandalone/start.sh

27 lines
688 B
Bash
Executable File

#!/bin/bash
set -e
echo "🚀 Starting Minimal TiDB Environment..."
echo "🐳 Starting Docker containers..."
docker compose up -d
echo ""
echo "⏳ Waiting for services to be ready..."
sleep 10
echo ""
echo "✅ Environment started successfully!"
echo ""
echo "📊 Connection Info:"
echo " TiDB: mysql -h 127.0.0.1 -P 4000 -u root"
echo " DataGrip: Host: 127.0.0.1, Port: 4000, User: root, Password: (empty)"
echo ""
echo "🔍 Useful commands:"
echo " Test connection: ./test-connection.sh"
echo " View logs: docker compose logs -f"
echo " Stop environment: docker compose down"
echo ""
echo "📖 For DataGrip setup: see DATAGRIP_SETUP.md"
echo ""