https://github.com/devigned/azure-golang-pg-mysql
Quick test to try out Azure SQL for PostgreSQL and MySQL
https://github.com/devigned/azure-golang-pg-mysql
Last synced: 11 months ago
JSON representation
Quick test to try out Azure SQL for PostgreSQL and MySQL
- Host: GitHub
- URL: https://github.com/devigned/azure-golang-pg-mysql
- Owner: devigned
- License: mit
- Created: 2017-09-28T22:26:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-29T16:06:38.000Z (over 8 years ago)
- Last Synced: 2025-03-31T07:31:34.661Z (about 1 year ago)
- Language: Go
- Size: 3.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Go Postgres and MySQL Quick Test
Quick test to try out building a connection to Azure PostgreSQL and MySQL
## How to Run
Replace `{{var name}}` with the appropriate variable from the Azure portal. Upon creation of a PostgreSQL or a MySQL
instance, you should quickly be able find username, password, the server name under the `Connection strings` tab.
- `go get github.com/devigned/azure-golang-pg-mysql`
- `cd $GOPATH/src/github.com/devigned/azure-golang-pg-mysql`
- `go build -o azsql`
- `./azsql mysql -n ‘{{username}}:{{password}}@tcp({{server_name}}.mysql.database.azure.com:3306)/mysql?tls=skip-verify&allowNativePasswords=true’`
- `./azsql pg -n 'user={{username}} password={{password}} host={{server_name}}.postgres.database.azure.com dbname=postgres port=5432'`