database

package
v0.0.0-...-d376067 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Mysql

expose 3306.

launch with specify volume:

$ docker run --name mymysql -v mysql-storage:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -d mysql:tag

create database and user:

$ docker run --name mymysql -v mysql-storage:/var/lib/mysql -e MYSQL_DATABASE=sandbox -e MYSQL_USER=sandbox MYSQL_PASSWORD=password -d mysql:tag

files in /docker-entrypoint-initdb.d will be executed when container started(.sh,.sql,.sql.gz).

$ docker run --name mymysql -v mysql-storage:/var/lib/mysql -v dbpatch:/docker-entrypoint-initdb.d -e MYSQL_DATABASE=sandbox -e MYSQL_USER=sandbox -e MYSQL_PASSWORD=password -d mysql:tag

SqlServer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MssqlVersion

func MssqlVersion(host string, port int, database, username, password string) (string, error)

func MysqlVersion

func MysqlVersion(host string, port int, database, username, password string) (string, error)

func PatchMssql

func PatchMssql(host string, port int, user, pw, db string, patch string) bool

func PatchMysql

func PatchMysql(host string, port int, user, pw, db string, patch string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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