scut AccountServer 使用mysql

來源:互聯網
上載者:User

標籤:mobile   ret   logs   login   ddr   prim   gpu   weixin   settings   

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.