# error: dial tcp 127.0.0.1:3306: connect: connection refused

- **ID:** `go/database-sql-connection-refused`
- **Domain:** go
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The database server is not running or is unreachable at the specified address and port.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.20 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Ensure the database server is running and accessible from the application's network.
   ```
2. **** (85% success)
   ```
   Use a connection retry mechanism with backoff.
   ```

## Dead Ends

- **** — If the server is down, retrying without fixing the server will not help. (90% fail)
- **** — The driver is not the issue; the server is unreachable. (70% fail)
