-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
I'm seeing the error message "Too man connections" when calling db.sqlDB.Query(). Before I dig further into this issue, I'm wondering if there is a known issue.
Thoughts?
013/07/23 03:05:35 yy.UpdateThingy() db.go:264 [Failed to insert record into XXXX: Error 1040: Too many connections]
I'm using go version 1.1.1:
go version go1.1.1 linux/386
I'm using the mysql driver version:
v1.0.1
MySql Version:
Server version: 5.5.22-0ubuntu1 (Ubuntu)
Here is a sample of one of my queries:
rows, err =
db.sqlDB.Query("insert into XXXX (yyyy) value (?)",
connect.ZZZZ)
if err != nil {
_ = rows.Close();
return result, err
}
_ = rows.Close();
I added "rows.Close()" hoping it would fix the issue, but no dice.
FYI, some of my queries use "rows.Scan" and some don't.