-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_db.sql
35 lines (29 loc) · 1.04 KB
/
create_db.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
Navicat MySQL Data Transfer
Target Server Version : 50547
File Encoding : utf-8
Date: 03/02/2016 23:26:31 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `count`
-- ----------------------------
DROP TABLE IF EXISTS `count`;
CREATE TABLE `count` (
`id_ips_visitors` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ip_adress` varchar(50) NOT NULL,
`date` date NOT NULL,
`views` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id_ips_visitors`),
KEY `ip_adress` (`ip_adress`,`date`),
KEY `views` (`views`),
KEY `date` (`date`) USING HASH
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Records of `count`
-- ----------------------------
BEGIN;
INSERT INTO `count` VALUES ('1', '94.158.77.42', '2016-03-02', '8'), ('2', '94.158.77.142', '2016-03-02', '1'), ('3', '194.158.77.42', '2016-03-02', '1'), ('4', '194.158.77.142', '2016-03-02', '1'), ('5', '194.158.1.1', '2016-03-01', '1');
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;