-
修改mysql密码
mysql> set password for root@localhost = password('shapolang');
-
创建数据库指定字符
create database IF NOT EXISTS lavue default charset utf8 collate utf8_general_ci
-
创建表
create table student( id int not null auto_increment, name varchar(20) not null, age tinyint not null default 0, primary key(`id`) ) engine=innodb default charset=utf8; #添加字段 alter table student add gender tinyint not null default 0 comment "0:male, 1:female"; #修改字段 alter table student change name name varchar(32) not null;
网友评论