-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to set charset utf8 #124
Comments
godrv.Register("SET NAMES utf8") // Create a connection handler failed.. |
godrv registers "SET NAMES utf8" by default (see Example 7). What do you mean by very descriptive "failed"? |
db, err := sql.Open("mymysql", conn) |
Try: db.Query("SET NAMES utf8") |
connection string -> tcp:127.0.0.1:3306*nt_financial/root/jxcec0okm ?
tcp:127.0.0.1:3306*nt_financial/root/jxcec0okm?charset=utf8
The text was updated successfully, but these errors were encountered: