- PostgreSQL server running and accessible
- Database and table created with imported data
.envfile configured with your database credentials
Check your .env file:
type .envShould contain:
DB_HOST=192.168.1.4
DB_PORT=5432
DB_USER=user_name
DB_PASS=password
DB_NAME=database_name
TB_NAME=scmdgo run test_connection.go database.goExpected output:
Testing PostgreSQL connection...
Successfully connected to PostgreSQL!
Search query executed successfully (found X bytes of results)
All tests passed!
scmd.exe --search "docker"scmd.exe --save "docker ps -a" "List all Docker containers"scmd.exe --webscmd.exe --web -port 8080scmd.exe --web -blockscmd.exe --web -port 3333 -serviceFailed to connect to database: dial tcp: connect: connection refused
Solution: Check if PostgreSQL is running and accessible:
psql -h 192.168.1.4 -p 5432 -U user_name -d database_nameError querying database: relation "scmd" does not exist
Solution: Verify table name in .env matches your PostgreSQL table:
\dtDatabase empty
Solution: Import data from tardigrade.db using the CLI tools:
cd cli
python import_to_postgres.pyAfter starting the web server, access it at:
- Local:
http://localhost:3333 - Network:
http://YOUR_IP:3333
The application will automatically open your browser to the correct URL.
- ✓ Test CLI search
- ✓ Test CLI save
- ✓ Test web interface
- ✓ Add your own commands
- ✓ Share with your team!
- Use comma-separated patterns for multiple searches:
--search "docker,kubernetes" - The web interface supports the same search patterns
- All commands are stored in PostgreSQL for easy backup and sharing
- Use
-blockflag to prevent users from adding commands via web UI
- See
POSTGRESQL_MIGRATION.mdfor detailed migration info - See
UPGRADE_SUMMARY.mdfor complete change list - Check PostgreSQL logs for database errors
- Review
.env.examplefor configuration reference