Comments (5)
Your example is not reproducible. Code snippet is not enough to pointing out your bug.
from mysql.
what you need to i send?
from mysql.
Complete but minimum code.
from mysql.
https://en.m.wikipedia.org/wiki/Minimal_reproducible_example
https://stackoverflow.com/help/minimal-reproducible-example
https://matthewrocklin.com/minimal-bug-reports
from mysql.
I am not sure about your issue, I am guessing it is a problem with your program.
Read the database/sql manual. https://pkg.go.dev/database/sql#Open
Open may just validate its arguments without creating a connection to the database. To verify that the data source name is valid, call Ping.
You need to call db.Ping()
or db.Execute("select 42")
to verify the settings you specified is correct. It is database/sql design.
Please use go community to ask more help. We maintainers are not free tech support.
from mysql.
Related Issues (20)
- a strange problem about takeSmallBuffer HOT 2
- Access denied for user 'root'@'localhost' HOT 3
- RFC: Disable `CheckConnLiveness` by default. HOT 9
- RFC: Parse `TINYINT(1)` as `bool` HOT 2
- Is it possible to execute set variable sequentially? HOT 1
- unexpected EOF / invalid connection HOT 3
- debug parameters to show up all running sql HOT 1
- Invalid Connection errors with lower driver ConnMaxLifeTime than MySQL HOT 1
- connectionAttributes not unescaped
- Prepared statement does not return correctly with JSON_EXTRACTOR HOT 6
- Not getting DB connection error if invalid credentials given HOT 1
- The link about security in `LOAD DATA LOCAL` is incorrect. HOT 1
- Move connCheck into ResetSession method HOT 1
- Question: why connection.go QueryContext don't finish the conn HOT 1
- The behavior of the readResultSetHeaderPacket differs from that of the MySQL client HOT 1
- tls option in DSN not existing HOT 2
- When the username and password are too long, it can cause a panic error in ping method.
- DSN: support / in database name HOT 9
- DNS.go Connector.go ERROR! HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql.