gopherdata / gophernotes

The Go kernel for Jupyter notebooks and nteract.
MIT License
3.82k stars 265 forks source link

unable to load driver packages #163

Open akhilravuri1 opened 5 years ago

akhilravuri1 commented 5 years ago

CODE:-

import ( "database/sql" "fmt" _"github.com/ibmdb/go_ibm_db" )

func main() { con := "HOSTNAME=localhost;PORT=50000;DATABASE=go;UID=*;PWD=**;" db, err := sql.Open("go_ibm_db", con) fmt.Println(err) } main()

ERROR:- This is Open()------722 sql: unknown driver "go_ibm_db" (forgotten import?)

Thanks.

kaps727 commented 3 years ago

try : sql.Register("go_ibm_db", &go_ibm_db.Driver{})

maxcorvalan commented 2 weeks ago

How did u solve this problem? Ive have had the same error and i didnt find other page with this problem