---
title: "Discussion on \"sql.Open() doesn't open anything\" | Hashnode"
description: "Discussion on \"sql.Open() doesn't open anything\". We all know the basic drill of connecting a db in Go:\nfunc main(){\n//...\ndsn := flag.String(\"dsn\", \"web:password@/demoProject\", \"MySQL data source name\")\n\tflag.Parse()\ndb, err := openDB(*dsn)\n\tif err"
url: "https://hashnode.com/posts/sql-open-doesn-t-open-anything/69da7b8bc8e5007ddbc8e9c9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [sql.Open() doesn't open anything](https://areeshzafar.hashnode.dev/sql-open-doesn-t-open-anything?utm_source=hashnode&utm_medium=feed)

We all know the basic drill of connecting a db in Go: func main(){ //... dsn := flag.String("dsn", "web:password@/demoProject", "MySQL data source name") flag.Parse() db, err := openDB(\*dsn) if err

Apr 11 · 3 min read · areeshzafar.hashnode.dev  
Read the article

## Written by

[Areesh Zafar](https://hashnode.com/@areesh-zafar)

@areesh-zafar · Kolkata, India

  
[View profile](https://hashnode.com/@areesh-zafar)

Sharing thoughts on Go and Creative Development

Interested in Go and Creative web development.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
