Last active
August 29, 2015 14:01
-
-
Save jwlyn/ea55dc3f16248fa88657 to your computer and use it in GitHub Desktop.
淘宝diamond的sql脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create database if not exists `diamond`; | |
grant all on diamond.* to zh@'%' identified by 'abc'; | |
use `diamond`; | |
create table config_info ( | |
`id` bigint(64) unsigned NOT NULL auto_increment, | |
`data_id` varchar(255) NOT NULL DEFAULT '', | |
`group_id` varchar(128) NOT NULL DEFAULT '', | |
`content` longtext NOT NULL, | |
`md5` varchar(32) NOT NULL DEFAULT '', | |
`gmt_create` datetime NOT NULL DEFAULT '2010-05-05 00:00:00', | |
`gmt_modified` datetime NOT NULL DEFAULT '2010-05-05 00:00:00', | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `uk_config_datagroup` (`data_id`,`group_id`) | |
)ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment