Google Cloud
Cloud SQL Commands
Create and manage Cloud SQL instances for PostgreSQL, MySQL, and SQL Server. Handle connections, backups, users, and database operations.
16 commands
Pro Tips
Use 'gcloud sql connect' for quick access - it handles the Cloud SQL Auth Proxy automatically.
Use Cloud SQL Auth Proxy for production apps - it provides encrypted connections without IP whitelisting.
Enable automated backups and point-in-time recovery for production instances.
Common Mistakes
Deleting an instance also deletes all backups. Export data before deletion.
Public IP connections require authorized networks. Use private IP or Cloud SQL Proxy for security.