I can connect to an RDS instance using the mysql -h ... command, so I know this is not a security group problem.
I tried to use:
sql.Open("mysql", "id: password@tcp (your-amazonaws-uri.com:3306)/dbname")
in the readme file go-sql-driver ( https://github.com/go-sql-driver/mysql ), but it does not work.
I use my username under the RDS instance instead of the identifier here.
Edit: Return error: panic runtime error: invalid memory address or nil pointer deference [signal 0xb code=0x1 addr=0x20 pc=0x5b551e] goroutine 16 [running] runtime.panic(0x7d4fc0, 0xa6ca73)...database/sql.(*Rows).Next...
It works fine with my local DB.
source share