bee generate scaffold user -fields="id:int64,name:string,gender:int,age:int" -driver=mysql -conn=":@tcp IP /"
2023-02-22
mysql 語句
create table `user` (
`id` int(11) not null auto_increment,
`name` varchar(255) not null default '',
`gender` tinyint(1) not null default 0,
`age` int(11) not null default 0,
primary key (`id`)
) engine=innodb default charset=utf8;
insert into user values(1,'zhangsan',1,21),(2,'lisi',0,23);
create table `user` (
`id` int(11) not null auto_increment,
`name` varchar(255) not null default '',
`gender` tinyint(1) not null default 0,
`age` int(11) not null default 0,
primary key (`id`)
) engine=innodb default charset=utf8;
insert into user values(1,'zhangsan',1,21),(2,'lisi',0,23);
2022-03-20
①編輯profile文件
vi ~/.bash_profile 或者 vi /etc/profile
②添加
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
③立即生效
source ~/.bash_profile 或者 ...
vi ~/.bash_profile 或者 vi /etc/profile
②添加
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
③立即生效
source ~/.bash_profile 或者 ...
2021-06-10
最新回答 / 立城大渣渣
default替換為你具體的數據庫名,同理:root?→?具體數據庫角色,一般是root12345?→?對應數據庫密碼127.0.0.1?→?數據庫地址。本機不用改/imooc?→?數據庫名?charset=xx?→附加參數
2021-02-25