01_connect

command
v0.0.0-...-42ea4af Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 5 Imported by: 0

README

Using MySQL

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

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