scut AccountServer 使用mysql

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了scut AccountServer 使用mysql相关的知识,希望对你有一定的参考价值。

1. appSettings 添加

  <add key="Snscenter_ProviderType" value="mysqlDataProvider" />

 

<connectionStrings>
<add name="SnsCenter" providerName="MySqlDataProvider" connectionString="server=192.168.1.5;database=test;uid=root;pwd=123456"/>
</connectionStrings>

2.导入sql文件

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for `limitdevice`
-- ----------------------------
DROP TABLE IF EXISTS `limitdevice`;
CREATE TABLE `limitdevice` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `DeviceID` varchar(50) DEFAULT NULL,
  `AppTime` datetime DEFAULT NULL,
  `Remark` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of limitdevice
-- ----------------------------

-- ----------------------------
-- Table structure for `loguserlogin`
-- ----------------------------
DROP TABLE IF EXISTS `loguserlogin`;
CREATE TABLE `loguserlogin` (
  `LogID` bigint(20) NOT NULL AUTO_INCREMENT,
  `UserID` bigint(20) DEFAULT NULL,
  `LogTime` datetime DEFAULT NULL,
  `IPAddr` varchar(15) DEFAULT NULL,
  `LogType` smallint(6) DEFAULT NULL,
  PRIMARY KEY (`LogID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of loguserlogin
-- ----------------------------

-- ----------------------------
-- Table structure for `passportloginlog`
-- ----------------------------
DROP TABLE IF EXISTS `passportloginlog`;
CREATE TABLE `passportloginlog` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `DeviceID` varchar(50) DEFAULT NULL,
  `PassportID` varchar(50) DEFAULT NULL,
  `LoginTime` datetime DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of passportloginlog
-- ----------------------------

-- ----------------------------
-- Table structure for `snspassportlog`
-- ----------------------------
DROP TABLE IF EXISTS `snspassportlog`;
CREATE TABLE `snspassportlog` (
  `PassportID` int(11) NOT NULL AUTO_INCREMENT,
  `CreateTime` datetime DEFAULT NULL,
  `Mark` int(11) DEFAULT NULL,
  `RegPushTime` datetime DEFAULT NULL,
  `RegTime` datetime DEFAULT NULL,
  PRIMARY KEY (`PassportID`)
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of snspassportlog
-- ----------------------------

-- ----------------------------
-- Table structure for `snsuserinfo`
-- ----------------------------
DROP TABLE IF EXISTS `snsuserinfo`;
CREATE TABLE `snsuserinfo` (
  `UserId` int(11) NOT NULL AUTO_INCREMENT,
  `PassportID` varchar(32) DEFAULT NULL,
  `PassportPwd` varchar(50) DEFAULT NULL,
  `DeviceID` varchar(50) DEFAULT NULL,
  `RegType` smallint(6) DEFAULT NULL,
  `RegTime` datetime DEFAULT NULL,
  `RetailID` varchar(50) DEFAULT NULL,
  `RetailUser` varchar(50) DEFAULT NULL,
  `Mobile` varchar(12) DEFAULT NULL,
  `Mail` varchar(50) DEFAULT NULL,
  `PwdType` int(11) DEFAULT NULL,
  `RealName` varchar(20) DEFAULT NULL,
  `IDCards` varchar(20) DEFAULT NULL,
  `ActiveCode` char(10) DEFAULT NULL,
  `SendActiveDate` datetime DEFAULT NULL,
  `ActiveDate` datetime DEFAULT NULL,
  `WeixinCode` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`UserId`)
) ENGINE=InnoDB AUTO_INCREMENT=1380000 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of snsuserinfo
-- ----------------------------

-- ----------------------------
-- Table structure for `userloginlog`
-- ----------------------------
DROP TABLE IF EXISTS `userloginlog`;
CREATE TABLE `userloginlog` (
  `SessionID` bigint(20) NOT NULL AUTO_INCREMENT,
  `UserID` bigint(20) DEFAULT NULL,
  `AddTime` datetime DEFAULT NULL,
  `Md5Hash` varchar(50) DEFAULT NULL,
  `Stat` tinyint(4) DEFAULT NULL,
  PRIMARY KEY (`SessionID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of userloginlog
-- ----------------------------

  



以上是关于scut AccountServer 使用mysql的主要内容,如果未能解决你的问题,请参考以下文章

使用 Scut 搭建通服架构

Scut 进阶:Schema 自动检测

关于scut校园网

scut和unity之间收发请求返回

SCUT - 337 - 岩殿居蟹 - 线段树

SCUT - 106 - 花式ac - 主席树