时间:2021-07-01 10:21:17 帮助过:24人阅读
-- 建库 create database `db_student`; SET character_set_client = utf8; use db_student; -- 建表 drop table if exists `user`; CREATE TABLE user ( id tinyint(5) zerofill auto_increment not null comment ‘学生学号‘, name varchar(20) default null comment ‘学生姓名‘, age tinyint default null comment ‘学生年龄‘, class varchar(20) default null comment ‘学生班级‘, sex char(5) not null comment ‘学生性别‘, unique key (id) )engine=innodb charset=utf8; -- 插入数据 insert into user values(‘1‘,‘小明‘,‘15‘,‘初三‘,‘男‘); insert into user values(‘2‘,‘小红‘,‘13‘,‘初二‘,‘女‘);
docker exec -it 镜像id /bin/bash
Dockerfile快速部署mysql数据库并初始化
标签:var 快速 dock lan com password style ase tiny