connect to a database in MySql using Golang You can easily connect to a MySql database in Golang by importing this repository . simply use go get github.com/prathyushnallamothu/dbconnection in your golang working directory. after importing change the USERNAME,PASSWORD,and SCHEMA name in the file dbconnection.go with your USERNAME,PASSWORD and SCHEMA name respectively. in my dbconnection.go you will have it as "root:pass@tcp(localhost:3306)/login" change it as "yourusername:yourpassword@tcp(localhost:3306)/yourschemaname" then only this will work to your mysql database.
-
Notifications
You must be signed in to change notification settings - Fork 0
prathyushnallamothu/dbconnection
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
connect to a MySql database in Golang
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published