首先声明本人不懂PHP,只会一点HTML,以下解决方法是本人摸着石头过河连蒙带猜试出来的,并未经过长时间验证,建议大家安装前备份好有关文件。不过经过24小时的实验,界面、功能、求婚、结婚、法院都没问题。
本方法只适合于全新安装。
相关主题:
社区婚姻 1.0 For D4:https://discuz.dismall.com/viewthread.php?tid=194132
社区婚姻 1[2].0 For D4.1:https://discuz.dismall.com/viewthread.php?tid=330882
该插件全新安装时出现如下错误:
Discuz! info: MySQL Query Error
User: xxxxxxxx
Time: 2006-7-18 12:23am
Script: /marryset.php
SQL:
CREATE TABLE `cdb_jhzhufu` (
`ID` mediumint(8) unsigned NOT NULL auto_increment,
`jhid` mediumint(8) unsigned NOT NULL default '0',
`username` varchar(15) NOT NULL default '',
`tousername` varchar(15) NOT NULL default '',
`addtime` int(10) unsigned default NULL,
`lmoney` int(10) unsigned default NULL,
`message` text,
KEY `ID` (`ID`)
) TYPE=MyISAM CHARSET=gbk AUTO_INCREMENT=2 ;
Error: You have an error in your SQL syntax near 'CHARSET=gbk AUTO_INCREMENT=2 ;
' at line 11
Errno.: 1064
An error report has been dispatched to our administrator.
出现这种错误我也不明白为啥(可能是SQL版本不同所致),只要手工升级数据库即可。在后台“数据库升级”里依次执行:
- CREATE TABLE `cdb_jhzhufu` (
- `ID` mediumint(8) unsigned NOT NULL auto_increment,
- `jhid` mediumint(8) unsigned NOT NULL default '0',
- `username` varchar(15) NOT NULL default '',
- `tousername` varchar(15) NOT NULL default '',
- `addtime` int(10) unsigned default NULL,
- `lmoney` int(10) unsigned default NULL,
- `message` text,
- KEY `ID` (`ID`)
- ) TYPE=MyISAM AUTO_INCREMENT=2 ;
复制代码- CREATE TABLE `cdb_jie` (
- `ID` mediumint(8) unsigned NOT NULL auto_increment,
- `username` varchar(15) NOT NULL default '',
- `thename` varchar(15) NOT NULL default '',
- `year` int(10) unsigned default NULL,
- `longs` int(10) unsigned default NULL,
- `addtime` int(10) unsigned default NULL,
- `TYPE` tinyint(3) unsigned NOT NULL default '0',
- `content` text,
- `jiehun` tinyint(1) unsigned NOT NULL default '0',
- KEY `ID` (`ID`)
- ) TYPE=MyISAM AUTO_INCREMENT=10 ;
复制代码- CREATE TABLE `cdb_lihun` (
- `id` mediumint(8) unsigned NOT NULL auto_increment,
- `username` varchar(15) NOT NULL default '',
- `tousername` varchar(15) NOT NULL default '',
- `addtime` int(10) unsigned default NULL,
- `reason` text,
- `indict` smallint(1) NOT NULL default '0',
- PRIMARY KEY (`id`)
- ) TYPE=MyISAM AUTO_INCREMENT=5 ;
复制代码- CREATE TABLE `cdb_qiuhun` (
- `ID` mediumint(8) unsigned NOT NULL auto_increment,
- `username` varchar(15) NOT NULL default '',
- `tousername` varchar(15) NOT NULL default '',
- `addtime` int(10) unsigned default NULL,
- `message` text,
- `dlg` tinyint(1) unsigned NOT NULL default '0',
- `jiehun` tinyint(1) unsigned NOT NULL default '0',
- `content` text,
- KEY `ID` (`ID`)
- ) TYPE=MyISAM AUTO_INCREMENT=10 ;
复制代码- ALTER TABLE cdb_members add hw varchar(15) NULL;
复制代码
然后再按照剩余步骤安装就没问题了,大家可以试试看,建议安装前备份好有关文件。
[ 本帖最后由 oasisfl 于 2006-7-19 00:16 编辑 ] |