08 2020 档案
摘要:一、不清空数据 无外键约束: 1、删除原有主键 alter table '表名' drop 'id'; 2、添加新主键字段并设置主键 alter table '表名' add 'id' int(8) primary key not null auto_increment first; 有外键约束 1
阅读全文
摘要:网上很多,你应该已经查了一溜够了!我这里只强调config 配置文件! 而配置里,两个配置起决定性作用,bind属性和protected-mode属性(protected-mode有没有是要看版本,老版本没有的)。我为什么把注释都放进来呢,因为人家已经写得很清楚了,好好看! ############
阅读全文