打开Command Line Client,不是MySQL shell,输入root密码,进入命令行,通过create database命令创建数据库。
创建一个字典表,并查看表结构。
设置主键,设置自增:
alter table dictionary add primary key(id);
alter table dictionary change id id int auto_increment;
打开Command Line Client,不是MySQL shell,输入root密码,进入命令行,通过create database命令创建数据库。
创建一个字典表,并查看表结构。
设置主键,设置自增:
alter table dictionary add primary key(id);
alter table dictionary change id id int auto_increment;