An open API service indexing awesome lists of open source software.

https://github.com/keyvaluesoftwaresystems/gsql-proxy

CLI tool to connect Google CloudSQL instances
https://github.com/keyvaluesoftwaresystems/gsql-proxy

Last synced: 6 months ago
JSON representation

CLI tool to connect Google CloudSQL instances

Awesome Lists containing this project

README

          

# Install gsql-proxy

## MacOS

```bash
brew install KeyValueSoftwareSystems/tools/gsql-proxy
```

## Ubuntu

```bash
curl -s https://raw.githubusercontent.com/KeyValueSoftwareSystems/gsql-proxy/master/scripts/install.sh | bash
```

# Usage

**To connect a database instance**

```bash
gsql-proxy connect --port=
```

By default `port=5432` and is optional



**To disconnect instance**

```bash
gsql-proxy disconnect
```


**For all commands**

```bash
gsql-proxy --help
```


# Prerequisites:

- [cloud_sql_proxy](https://keyvalue.atlassian.net/wiki/spaces/TECH/pages/263782429/Cloud+SQL+connect+with+SQL+Proxy)
- [gcloud](https://cloud.google.com/sdk/docs/install)

### Install prerequisites in single click (WIP)

```bash
curl -s https://raw.githubusercontent.com/KeyValueSoftwareSystems/gsql-proxy/master/scripts/install_prerequisites.sh | bash
```