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 ¶
- func MssqlVersion(host string, port int, database, username, password string) (string, error)
- func MysqlVersion(host string, port int, database, username, password string) (string, error)
- func PatchMssql(host string, port int, user, pw, db string, patch string) bool
- func PatchMysql(host string, port int, user, pw, db string, patch string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MssqlVersion ¶
func MysqlVersion ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.