Connection fails with mysql using GoLang
<p>I am trying to connect the MySql DB using Go Language and gives me following error.</p>

<pre><code>sql: unknown driver "mysql" (forgotten import?)
</code></pre>

<p>My Code</p>

<pre><code>package main

    import (
        "database/sql"
        "fmt"
    )

func main() {
    db, err := sql.Open("mysql", "astaxie:astaxie@/test?charset=utf8")
    checkErr(err);
    err=db.Ping();
}
</code></pre>

<p>Also when I import</p>

<pre><code>        _ "github.com/go-sql-driver/mysql"
</code></pre>

<p>I am getting error of</p>

<pre><code>imported and not used
</code></pre>