Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/jex-lin/golang_connect_to_mysql

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/jex-lin/golang_connect_to_mysql

  • v0.0.0-20141103104632-75f5739debb7
  • Source
  • Go
  • Socket score

Version published
Created
Source

Install Mercurial

sudo apt-get install mercurial meld

Install mysql-server and golang-mysql driver

sudo apt-get install mysql-server
go get github.com/go-sql-driver/mysql

Create mysql data for testing

CREATE DATABASE go_test
CREATE TABLE tt (name char(10));
Insert tt values ('jex');
Insert tt values ('bob');
Insert tt values ('ted');

Execute go run main.go and then you will see :

jex
bob
ted

FAQs

Package last updated on 03 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc