access to mysql

42 views
Skip to first unread message

mschlimp

unread,
Oct 21, 2015, 4:23:28 PM10/21/15
to google-appengine-go
Hi,

it is possible to have access to a mysql running on a Compute Engine Server?

If I try the CloudSQL Solution I get the error:


panic: sql: Register called twice for driver mysql


for the import:


"database/sql"

_ "github.com/go-sql-driver/mysql"

    

without 


_ "github.com/go-sql-driver/mysql"


i get the runtime error:


dial tcp XX.XX.XX.XX:3306: operation not permitted


Is there a option to access to a mysql database?


thanks

marcel

Miguel Vitorino

unread,
Oct 22, 2015, 1:11:33 PM10/22/15
to google-appengine-go

You probably have to use the Sockets api if you want to open a tcp connection to a MySQL on GCE (assuming you are using classic GAE and not Managed VMs).

Miguel

p...@skylove.ly

unread,
May 20, 2016, 10:09:44 PM5/20/16
to google-appengine-go

p...@skylove.ly

unread,
May 20, 2016, 10:09:57 PM5/20/16
to google-appengine-go
Reply all
Reply to author
Forward
0 new messages