摘要:
show create table 表名 \G;(查看创建的属性) alter table 表名 auto_increment=xx;(修改自增起始值) set session auto_increment_offset=xx;(修改步长) 索引的目的:加速查找 约束: 主键 外键 唯一索引:uni 阅读全文
摘要:
题目: 解答: 第一个表创建: create table class( cid int not null auto_increment primary key, caption char(20) not null )engine=innodb default charset=utf8; 插入数据: 阅读全文
摘要:
1.用户管理 创建用户: create user '用户名'@'IP地址' identified by '密码';(IP地址:%代表所有) 用户登录: mysql -u 用户名 -p(enter之后输入密码) 刚安装可能出现问题:无论怎么都没法登录新建的账户,提示如下: ERROR 1045 (28 阅读全文