01_connect

command
v0.0.0-...-6ea799e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2022 License: MIT Imports: 5 Imported by: 0

README

Using MySQL

  1. Install MySQL
  1. We will need a MySQL driver
  1. Include the driver in your imports
  1. Determine the Data Source Name
  1. Open a connection
  • db, err := sql.Open("mysql", "user:password@tcp(localhost:5555)/dbname?charset=utf8")

package sql

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL