create user testUser@'%' identified by 'TEST';
'%' 能够过程访问 mysql
TSET.* : TEST 数据库的全部表sql
grant all on TEST.* to userTEST@'%';
mysql test</root/dump.sql
导出数据表结构 及数据 数据库
mysqldump -u username -p test>/usr/test.sql
建立索引ide
alter table uses add index user_sex_index(sex) comment 'uses 表中的 sex 索引';
show create table offices
alter table offices modify office_name varchar(30) not null comment '科室名称';
ALTER TABLE user_froms CONVERT TO CHARACTER SET utf8;
ALTER TABLE user_froms DEFAULT CHARACTER SET utf8;