![本地安装dedeCMS时出现:MySQL 支持 On [×]Off (不支持无法使用本系统) 什么问题导致的,第1张 本地安装dedeCMS时出现:MySQL 支持 On [×]Off (不支持无法使用本系统) 什么问题导致的,第1张](/aiimages/%E6%9C%AC%E5%9C%B0%E5%AE%89%E8%A3%85dedeCMS%E6%97%B6%E5%87%BA%E7%8E%B0%EF%BC%9AMySQL+%E6%94%AF%E6%8C%81+On+%5B%C3%97%5DOff+%28%E4%B8%8D%E6%94%AF%E6%8C%81%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%E6%9C%AC%E7%B3%BB%E7%BB%9F%29+%E4%BB%80%E4%B9%88%E9%97%AE%E9%A2%98%E5%AF%BC%E8%87%B4%E7%9A%84.png)
你好,估计是你的本地环境没搭配好。如果只是进行本地测试学习用的话,我个人认为还是用集成的环境来配置,IIS用起来很麻烦,有那个时间还不如多看点其他教程呢,我现在本地用start WampServer 做的服务器,方便了不少。网上这个软件很多的。
create table studentinfo
(
student_id nchar(10) not null,
student_name nchar(10) null,
student_sex nchar(10) null,
student_bir datetime null,
student_class_no nchar(10) null,
student_tel nchar(11) null,
student_rdata datetime null,
address nchar(200) null,
memment nchar(1000) null,
photo image null,
constraint pk_studentinfo primary key clustered
(
student_id asc
)with(pad_index =off,statistics_norecompute =off,ignore_dup_key=off,allow_row_locks =on,allow_page_locks =on)on [PRIMARY]
)on [PRIMARY] textimage_on [PRIMARY]
go
第一:student_id 是主键,必须为 not null
第二:那三个on primary的primary外面必须加上中括号;以形成 [PRIMARY] 的形式
太简单了。把表的IDCard 为自动增长给去掉,或者把语句改为:
strSqlAppend("insert into Archives(");
strSqlAppend("Name,Password,Gender,Age,Education,Height,DateOfBirth,Native,Degree,Major,Title,Post)");
strSqlAppend(" values (");
strSqlAppend("@Name,@Password,@Gender,@Age,@Education,@Height,@DateOfBirth,@Native,@Degree,@Major,@Title,@Post)");
OK。搞定
以上就是关于本地安装dedeCMS时出现:MySQL 支持 On [×]Off (不支持无法使用本系统) 什么问题导致的全部的内容,包括:本地安装dedeCMS时出现:MySQL 支持 On [×]Off (不支持无法使用本系统) 什么问题导致的、数据库的问题、.net sql sever 当 IDENTITY_INSERT 设置为 OFF 时,不能为表 'Archives' 中的标识列插入显式值。等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)