|

楼主 |
发表于 2014-11-10 23:57:14
|
显示全部楼层
- CREATE TABLE IF NOT EXISTS `user` (
- `uid` int(11) NOT NULL,
- `user_name` varchar(128) CHARACTER SET utf8mb4 NOT NULL,
- `email` varchar(32) NOT NULL,
- `pass` varchar(32) NOT NULL,
- `passwd` varchar(16) NOT NULL,
- `t` int(11) NOT NULL DEFAULT '0',
- `u` bigint(20) NOT NULL,
- `d` bigint(20) NOT NULL,
- `plan` varchar(2) CHARACTER SET utf8mb4 NOT NULL,
- `transfer_enable` bigint(20) NOT NULL,
- `port` int(11) NOT NULL,
- `switch` tinyint(4) NOT NULL DEFAULT '1',
- `enable` tinyint(4) NOT NULL DEFAULT '1',
- `type` tinyint(4) NOT NULL DEFAULT '1',
- `last_get_gitf_time` int(11) NOT NULL DEFAULT '0',
- `last_rest_pass_time` int(11) NOT NULL DEFAULT '0',
- `reg_date` datetime NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=17 ;
- --
- -- Dumping data for table `user`
- --
- INSERT INTO `user` (`uid`, `user_name`, `email`, `pass`, `passwd`, `t`, `u`, `d`, `plan`, `transfer_enable`, `port`, `switch`, `enable`, `type`, `last_get_gitf_time`, `last_rest_pass_time`, `reg_date`) VALUES
- (1, 'user', 'test@test.com', '9003d1df22eb4d3820015070385194c8', '0000000', 1410609560, 3, 4, 'A', 30000000000, 50000, 1, 1, 7, 0, 0, '2014-11-07 00:00:00');
- --
- -- Indexes for dumped tables
- --
- --
- -- Indexes for table `user`
- --
- ALTER TABLE `user`
- ADD PRIMARY KEY (`uid`,`port`);
复制代码
新建个table
然后执行这个试试看? |
|