File contents mysql
A MySQL-Driver for Go's database/sql package
When to Use
When NOT to Use
Projects using Python or JavaScript (different ecosystem)
Quick Start
Install
go get -u github.com/go-sql-driver/mysql
Basic Usage
import (
"database/sql"
"time"
_ "github.com/go-sql-driver/mysql"
)
// ...
db, err := sql.Open("mysql", "user:password@/dbname")
if err != nil {
panic(err)
}
// See "Important settings" section.
db.SetConnMaxLifetime(time.Minute * 3)
db.SetMaxOpenConns(10)
db.SetMaxIdleConns(10)
Key Features
Lightweight and fast
Native Go implementation. No C-bindings, just pure Go
Connections over TCP/IPv4, TCP/IPv6, Unix domain sockets or custom protocols
Automatic handling of broken connections
Automatic Connection Pooling (by database/sql package)
Project Info
File Structure
├── auth_test.go
├── auth.go
├── AUTHORS
├── benchmark_test.go
├── buffer.go
├── CHANGELOG.md
├── collations.go
├── compress_test.go
├── compress.go
├── conncheck_dummy.go
├── conncheck_test.go
├── conncheck.go
├── connection_test.go
├── connection.go
├── connector_test.go
├── connector.go
├── const.go
├── driver_test.go
├── driver.go
├── dsn_fuzz_test.go
Generated by repo2skill
Source: NeuZhou/repo2skill — distributed by TomeVault .
1 --- 2 name: neuzhou-repo2skill-mysql 3 description: mysql 4 --- 5 6 # mysql 7 8 A MySQL-Driver for Go's [database/sql](https://golang.org/pkg/database/sql/) package 9 10 ## When to Use 11 12 - Make HTTP requests 13 14 ## When NOT to Use 15 16 - Projects using Python or JavaScript (different ecosystem) 17 18 ## Quick Start 19 20 ### Install 21 22 ```bash 23 go get -u github.com/go-sql-driver/mysql 24 ``` 25 26 ### Basic Usage 27 28 ```go 29 import ( 30 "database/sql" 31 "time" 32 33 _ "github.com/go-sql-driver/mysql" 34 ) 35 36 // ... 37 38 db, err := sql.Open("mysql", "user:password@/dbname") 39 if err != nil { 40 panic(err) 41 } 42 // See "Important settings" section. 43 db.SetConnMaxLifetime(time.Minute * 3) 44 db.SetMaxOpenConns(10) 45 db.SetMaxIdleConns(10) 46 ``` 47 48 ## Key Features 49 50 - Lightweight and fast 51 - Native Go implementation. No C-bindings, just pure Go 52 - Connections over TCP/IPv4, TCP/IPv6, Unix domain sockets or custom protocols 53 - Automatic handling of broken connections 54 - Automatic Connection Pooling *(by database/sql package)* 55 56 ## Project Info 57 58 - **Language:** Go 59 - **Tests:** Yes 60 61 ## File Structure 62 63 ``` 64 ├── auth_test.go 65 ├── auth.go 66 ├── AUTHORS 67 ├── benchmark_test.go 68 ├── buffer.go 69 ├── CHANGELOG.md 70 ├── collations.go 71 ├── compress_test.go 72 ├── compress.go 73 ├── conncheck_dummy.go 74 ├── conncheck_test.go 75 ├── conncheck.go 76 ├── connection_test.go 77 ├── connection.go 78 ├── connector_test.go 79 ├── connector.go 80 ├── const.go 81 ├── driver_test.go 82 ├── driver.go 83 ├── dsn_fuzz_test.go 84 ``` 85 86 > Generated by [repo2skill](https://github.com/NeuZhou/repo2skill) 87 88 --- 89 > Source: [NeuZhou/repo2skill](https://github.com/NeuZhou/repo2skill) — distributed by [TomeVault](https://tomevault.io). 90 <!-- tomevault:4.0:skill_md:2026-05-22 -->
tomevault-io/skills-registry/tree/main/neuzhou--repo2skill--mysql commit 7b2272f5aa
Frequently asked questions How do I install the Neuzhou Repo2skill Mysql skill? Run npx skillmds@latest add tomevault-io/neuzhou-repo2skill-mysql in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Neuzhou Repo2skill Mysql skill do? mysql It is listed under Coding & Dev Tools on SkillMD.
Is Neuzhou Repo2skill Mysql safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Neuzhou Repo2skill Mysql? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Neuzhou Repo2skill Mysql free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Neuzhou Repo2skill Mysql? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.