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
go get github.com/astaxie/beego
go get github.com/beego/bee
go get github.com/beego/bee
2021-07-17
①編輯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替換為你具體的數(shù)據(jù)庫名,同理:root?→?具體數(shù)據(jù)庫角色,一般是root12345?→?對應(yīng)數(shù)據(jù)庫密碼127.0.0.1?→?數(shù)據(jù)庫地址。本機不用改/imooc?→?數(shù)據(jù)庫名?charset=xx?→附加參數(shù)
2021-02-25
適合有web基礎(chǔ)的同學(xué)學(xué)習(xí),不然連mysql都不會裝,環(huán)境配置都不會,看這個課程就純屬浪費時間了
2020-06-22