![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
随风_2016
这个作者很懒,什么都没留下…
展开
-
mysql增加自增主键
原有数据已有主键,想增加自增字段为主键: alter table face_user_info add primary key (iid int auto_increment); ALTER TABLE face_user_info ADD new_field_id int(5) not null auto_increment ,ADD primary key (new_field_id); u...原创 2019-11-01 13:43:00 · 1406 阅读 · 0 评论 -
mysql管理
mysql创建用户 // select * from user ; drop user 'test'@'localhost'; //新版本不支持以下创建 grant select,insert on *.* to 'test'@'localhost' identified by 'test'; grant usage on *.* to 'discuz'@'localhost' identif...原创 2019-08-12 12:02:47 · 148 阅读 · 0 评论