⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mysql_create_system_tables

📁 开启mysql的远程连接的方法 mysql-noinstall-5.1.6-alpha-win32.zip
💻
📖 第 1 页 / 共 3 页
字号:
  fi  c_ht="$c_ht CREATE TABLE help_topic ("  c_ht="$c_ht   help_topic_id    int unsigned not null,"  c_ht="$c_ht   name             char(64) not null,"  c_ht="$c_ht   help_category_id smallint unsigned not null,"  c_ht="$c_ht   description      text not null,"  c_ht="$c_ht   example          text not null,"  c_ht="$c_ht   url              char(128) not null,"  c_ht="$c_ht   primary key      (help_topic_id),"  c_ht="$c_ht   unique index     (name)"  c_ht="$c_ht ) engine=MyISAM"  c_ht="$c_ht CHARACTER SET utf8"  c_ht="$c_ht   comment='help topics';"fiold_categories="yes"		    if test ! -f $mdata/help_category.frmthen  if test "$1" = "verbose" ; then    echo "Preparing help_category table" 1>&2;  fi    c_hc="$c_hc CREATE TABLE help_category ("  c_hc="$c_hc   help_category_id   smallint unsigned not null,"  c_hc="$c_hc   name               char(64) not null,"  c_hc="$c_hc   parent_category_id smallint unsigned null,"  c_hc="$c_hc   url                char(128) not null,"  c_hc="$c_hc   primary key        (help_category_id),"  c_hc="$c_hc   unique index       (name)"  c_hc="$c_hc ) engine=MyISAM"  c_hc="$c_hc CHARACTER SET utf8"  c_hc="$c_hc   comment='help categories';"fiif test ! -f $mdata/help_keyword.frmthen  if test "$1" = "verbose" ; then    echo "Preparing help_keyword table" 1>&2;  fi  c_hk="$c_hk CREATE TABLE help_keyword ("  c_hk="$c_hk   help_keyword_id  int unsigned not null,"  c_hk="$c_hk   name             char(64) not null,"  c_hk="$c_hk   primary key      (help_keyword_id),"  c_hk="$c_hk   unique index     (name)"  c_hk="$c_hk ) engine=MyISAM"  c_hk="$c_hk CHARACTER SET utf8"  c_hk="$c_hk   comment='help keywords';"fi				    if test ! -f $mdata/help_relation.frmthen  if test "$1" = "verbose" ; then   echo "Preparing help_relation table" 1>&2;  fi  c_hr="$c_hr CREATE TABLE help_relation ("  c_hr="$c_hr   help_topic_id    int unsigned not null references help_topic,"  c_hr="$c_hr   help_keyword_id  int unsigned not null references help_keyword,"  c_hr="$c_hr   primary key      (help_keyword_id, help_topic_id)"  c_hr="$c_hr ) engine=MyISAM"  c_hr="$c_hr CHARACTER SET utf8"  c_hr="$c_hr   comment='keyword-topic relation';"fiif test ! -f $mdata/time_zone_name.frmthen  if test "$1" = "verbose" ; then   echo "Preparing time_zone_name table" 1>&2;  fi  c_tzn="$c_tzn CREATE TABLE time_zone_name ("  c_tzn="$c_tzn   Name char(64) NOT NULL,"  c_tzn="$c_tzn   Time_zone_id int unsigned NOT NULL,"  c_tzn="$c_tzn   PRIMARY KEY Name (Name)"  c_tzn="$c_tzn ) engine=MyISAM CHARACTER SET utf8"  c_tzn="$c_tzn   comment='Time zone names';"    if test "$1" = "test"   then    i_tzn="$i_tzn INSERT INTO time_zone_name (Name, Time_Zone_id) VALUES"    i_tzn="$i_tzn   ('MET', 1), ('UTC', 2), ('Universal', 2), "    i_tzn="$i_tzn   ('Europe/Moscow',3), ('leap/Europe/Moscow',4), "    i_tzn="$i_tzn   ('Japan', 5);"  fifiif test ! -f $mdata/time_zone.frmthen  if test "$1" = "verbose" ; then   echo "Preparing time_zone table" 1>&2;  fi  c_tz="$c_tz CREATE TABLE time_zone ("  c_tz="$c_tz   Time_zone_id int unsigned NOT NULL auto_increment,"  c_tz="$c_tz   Use_leap_seconds enum('Y','N') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"  c_tz="$c_tz   PRIMARY KEY TzId (Time_zone_id)"  c_tz="$c_tz ) engine=MyISAM CHARACTER SET utf8"  c_tz="$c_tz   comment='Time zones';"    if test "$1" = "test"   then    i_tz="$i_tz INSERT INTO time_zone (Time_zone_id, Use_leap_seconds)"     i_tz="$i_tz   VALUES (1,'N'), (2,'N'), (3,'N'), (4,'Y'), (5,'N');"  fifiif test ! -f $mdata/time_zone_transition.frmthen  if test "$1" = "verbose" ; then   echo "Preparing time_zone_transition table" 1>&2;  fi  c_tzt="$c_tzt CREATE TABLE time_zone_transition ("  c_tzt="$c_tzt   Time_zone_id int unsigned NOT NULL,"  c_tzt="$c_tzt   Transition_time bigint signed NOT NULL,"  c_tzt="$c_tzt   Transition_type_id int unsigned NOT NULL,"  c_tzt="$c_tzt   PRIMARY KEY TzIdTranTime (Time_zone_id, Transition_time)"  c_tzt="$c_tzt ) engine=MyISAM CHARACTER SET utf8"  c_tzt="$c_tzt   comment='Time zone transitions';"    if test "$1" = "test"   then    i_tzt="$i_tzt INSERT INTO time_zone_transition"    i_tzt="$i_tzt   (Time_zone_id, Transition_time, Transition_type_id)"    i_tzt="$i_tzt VALUES"    i_tzt="$i_tzt   (1, -1693706400, 0) ,(1, -1680483600, 1)"    i_tzt="$i_tzt  ,(1, -1663455600, 2) ,(1, -1650150000, 3)"    i_tzt="$i_tzt  ,(1, -1632006000, 2) ,(1, -1618700400, 3)"    i_tzt="$i_tzt  ,(1, -938905200, 2) ,(1, -857257200, 3)"    i_tzt="$i_tzt  ,(1, -844556400, 2) ,(1, -828226800, 3)"    i_tzt="$i_tzt  ,(1, -812502000, 2) ,(1, -796777200, 3)"    i_tzt="$i_tzt  ,(1, 228877200, 2) ,(1, 243997200, 3)"    i_tzt="$i_tzt  ,(1, 260326800, 2) ,(1, 276051600, 3)"    i_tzt="$i_tzt  ,(1, 291776400, 2) ,(1, 307501200, 3)"    i_tzt="$i_tzt  ,(1, 323830800, 2) ,(1, 338950800, 3)"    i_tzt="$i_tzt  ,(1, 354675600, 2) ,(1, 370400400, 3)"    i_tzt="$i_tzt  ,(1, 386125200, 2) ,(1, 401850000, 3)"    i_tzt="$i_tzt  ,(1, 417574800, 2) ,(1, 433299600, 3)"    i_tzt="$i_tzt  ,(1, 449024400, 2) ,(1, 465354000, 3)"    i_tzt="$i_tzt  ,(1, 481078800, 2) ,(1, 496803600, 3)"    i_tzt="$i_tzt  ,(1, 512528400, 2) ,(1, 528253200, 3)"    i_tzt="$i_tzt  ,(1, 543978000, 2) ,(1, 559702800, 3)"    i_tzt="$i_tzt  ,(1, 575427600, 2) ,(1, 591152400, 3)"    i_tzt="$i_tzt  ,(1, 606877200, 2) ,(1, 622602000, 3)"    i_tzt="$i_tzt  ,(1, 638326800, 2) ,(1, 654656400, 3)"    i_tzt="$i_tzt  ,(1, 670381200, 2) ,(1, 686106000, 3)"    i_tzt="$i_tzt  ,(1, 701830800, 2) ,(1, 717555600, 3)"    i_tzt="$i_tzt  ,(1, 733280400, 2) ,(1, 749005200, 3)"    i_tzt="$i_tzt  ,(1, 764730000, 2) ,(1, 780454800, 3)"    i_tzt="$i_tzt  ,(1, 796179600, 2) ,(1, 811904400, 3)"    i_tzt="$i_tzt  ,(1, 828234000, 2) ,(1, 846378000, 3)"    i_tzt="$i_tzt  ,(1, 859683600, 2) ,(1, 877827600, 3)"    i_tzt="$i_tzt  ,(1, 891133200, 2) ,(1, 909277200, 3)"    i_tzt="$i_tzt  ,(1, 922582800, 2) ,(1, 941331600, 3)"    i_tzt="$i_tzt  ,(1, 954032400, 2) ,(1, 972781200, 3)"    i_tzt="$i_tzt  ,(1, 985482000, 2) ,(1, 1004230800, 3)"    i_tzt="$i_tzt  ,(1, 1017536400, 2) ,(1, 1035680400, 3)"    i_tzt="$i_tzt  ,(1, 1048986000, 2) ,(1, 1067130000, 3)"    i_tzt="$i_tzt  ,(1, 1080435600, 2) ,(1, 1099184400, 3)"    i_tzt="$i_tzt  ,(1, 1111885200, 2) ,(1, 1130634000, 3)"    i_tzt="$i_tzt  ,(1, 1143334800, 2) ,(1, 1162083600, 3)"    i_tzt="$i_tzt  ,(1, 1174784400, 2) ,(1, 1193533200, 3)"    i_tzt="$i_tzt  ,(1, 1206838800, 2) ,(1, 1224982800, 3)"    i_tzt="$i_tzt  ,(1, 1238288400, 2) ,(1, 1256432400, 3)"    i_tzt="$i_tzt  ,(1, 1269738000, 2) ,(1, 1288486800, 3)"    i_tzt="$i_tzt  ,(1, 1301187600, 2) ,(1, 1319936400, 3)"    i_tzt="$i_tzt  ,(1, 1332637200, 2) ,(1, 1351386000, 3)"    i_tzt="$i_tzt  ,(1, 1364691600, 2) ,(1, 1382835600, 3)"    i_tzt="$i_tzt  ,(1, 1396141200, 2) ,(1, 1414285200, 3)"    i_tzt="$i_tzt  ,(1, 1427590800, 2) ,(1, 1445734800, 3)"    i_tzt="$i_tzt  ,(1, 1459040400, 2) ,(1, 1477789200, 3)"    i_tzt="$i_tzt  ,(1, 1490490000, 2) ,(1, 1509238800, 3)"    i_tzt="$i_tzt  ,(1, 1521939600, 2) ,(1, 1540688400, 3)"    i_tzt="$i_tzt  ,(1, 1553994000, 2) ,(1, 1572138000, 3)"    i_tzt="$i_tzt  ,(1, 1585443600, 2) ,(1, 1603587600, 3)"    i_tzt="$i_tzt  ,(1, 1616893200, 2) ,(1, 1635642000, 3)"    i_tzt="$i_tzt  ,(1, 1648342800, 2) ,(1, 1667091600, 3)"    i_tzt="$i_tzt  ,(1, 1679792400, 2) ,(1, 1698541200, 3)"    i_tzt="$i_tzt  ,(1, 1711846800, 2) ,(1, 1729990800, 3)"    i_tzt="$i_tzt  ,(1, 1743296400, 2) ,(1, 1761440400, 3)"    i_tzt="$i_tzt  ,(1, 1774746000, 2) ,(1, 1792890000, 3)"    i_tzt="$i_tzt  ,(1, 1806195600, 2) ,(1, 1824944400, 3)"    i_tzt="$i_tzt  ,(1, 1837645200, 2) ,(1, 1856394000, 3)"    i_tzt="$i_tzt  ,(1, 1869094800, 2) ,(1, 1887843600, 3)"    i_tzt="$i_tzt  ,(1, 1901149200, 2) ,(1, 1919293200, 3)"    i_tzt="$i_tzt  ,(1, 1932598800, 2) ,(1, 1950742800, 3)"    i_tzt="$i_tzt  ,(1, 1964048400, 2) ,(1, 1982797200, 3)"    i_tzt="$i_tzt  ,(1, 1995498000, 2) ,(1, 2014246800, 3)"    i_tzt="$i_tzt  ,(1, 2026947600, 2) ,(1, 2045696400, 3)"    i_tzt="$i_tzt  ,(1, 2058397200, 2) ,(1, 2077146000, 3)"    i_tzt="$i_tzt  ,(1, 2090451600, 2) ,(1, 2108595600, 3)"    i_tzt="$i_tzt  ,(1, 2121901200, 2) ,(1, 2140045200, 3)"    i_tzt="$i_tzt  ,(3, -1688265000, 2) ,(3, -1656819048, 1)"    i_tzt="$i_tzt  ,(3, -1641353448, 2) ,(3, -1627965048, 3)"    i_tzt="$i_tzt  ,(3, -1618716648, 1) ,(3, -1596429048, 3)"    i_tzt="$i_tzt  ,(3, -1593829848, 5) ,(3, -1589860800, 4)"    i_tzt="$i_tzt  ,(3, -1542427200, 5) ,(3, -1539493200, 6)"    i_tzt="$i_tzt  ,(3, -1525323600, 5) ,(3, -1522728000, 4)"    i_tzt="$i_tzt  ,(3, -1491188400, 7) ,(3, -1247536800, 4)"    i_tzt="$i_tzt  ,(3, 354920400, 5) ,(3, 370728000, 4)"    i_tzt="$i_tzt  ,(3, 386456400, 5) ,(3, 402264000, 4)"    i_tzt="$i_tzt  ,(3, 417992400, 5) ,(3, 433800000, 4)"    i_tzt="$i_tzt  ,(3, 449614800, 5) ,(3, 465346800, 8)"    i_tzt="$i_tzt  ,(3, 481071600, 9) ,(3, 496796400, 8)"    i_tzt="$i_tzt  ,(3, 512521200, 9) ,(3, 528246000, 8)"    i_tzt="$i_tzt  ,(3, 543970800, 9) ,(3, 559695600, 8)"    i_tzt="$i_tzt  ,(3, 575420400, 9) ,(3, 591145200, 8)"    i_tzt="$i_tzt  ,(3, 606870000, 9) ,(3, 622594800, 8)"    i_tzt="$i_tzt  ,(3, 638319600, 9) ,(3, 654649200, 8)"    i_tzt="$i_tzt  ,(3, 670374000, 10) ,(3, 686102400, 11)"    i_tzt="$i_tzt  ,(3, 695779200, 8) ,(3, 701812800, 5)"    i_tzt="$i_tzt  ,(3, 717534000, 4) ,(3, 733273200, 9)"    i_tzt="$i_tzt  ,(3, 748998000, 8) ,(3, 764722800, 9)"    i_tzt="$i_tzt  ,(3, 780447600, 8) ,(3, 796172400, 9)"    i_tzt="$i_tzt  ,(3, 811897200, 8) ,(3, 828226800, 9)"    i_tzt="$i_tzt  ,(3, 846370800, 8) ,(3, 859676400, 9)"    i_tzt="$i_tzt  ,(3, 877820400, 8) ,(3, 891126000, 9)"    i_tzt="$i_tzt  ,(3, 909270000, 8) ,(3, 922575600, 9)"    i_tzt="$i_tzt  ,(3, 941324400, 8) ,(3, 954025200, 9)"    i_tzt="$i_tzt  ,(3, 972774000, 8) ,(3, 985474800, 9)"    i_tzt="$i_tzt  ,(3, 1004223600, 8) ,(3, 1017529200, 9)"    i_tzt="$i_tzt  ,(3, 1035673200, 8) ,(3, 1048978800, 9)"    i_tzt="$i_tzt  ,(3, 1067122800, 8) ,(3, 1080428400, 9)"    i_tzt="$i_tzt  ,(3, 1099177200, 8) ,(3, 1111878000, 9)"    i_tzt="$i_tzt  ,(3, 1130626800, 8) ,(3, 1143327600, 9)"    i_tzt="$i_tzt  ,(3, 1162076400, 8) ,(3, 1174777200, 9)"    i_tzt="$i_tzt  ,(3, 1193526000, 8) ,(3, 1206831600, 9)"    i_tzt="$i_tzt  ,(3, 1224975600, 8) ,(3, 1238281200, 9)"    i_tzt="$i_tzt  ,(3, 1256425200, 8) ,(3, 1269730800, 9)"    i_tzt="$i_tzt  ,(3, 1288479600, 8) ,(3, 1301180400, 9)"    i_tzt="$i_tzt  ,(3, 1319929200, 8) ,(3, 1332630000, 9)"    i_tzt="$i_tzt  ,(3, 1351378800, 8) ,(3, 1364684400, 9)"    i_tzt="$i_tzt  ,(3, 1382828400, 8) ,(3, 1396134000, 9)"    i_tzt="$i_tzt  ,(3, 1414278000, 8) ,(3, 1427583600, 9)"    i_tzt="$i_tzt  ,(3, 1445727600, 8) ,(3, 1459033200, 9)"    i_tzt="$i_tzt  ,(3, 1477782000, 8) ,(3, 1490482800, 9)"    i_tzt="$i_tzt  ,(3, 1509231600, 8) ,(3, 1521932400, 9)"    i_tzt="$i_tzt  ,(3, 1540681200, 8) ,(3, 1553986800, 9)"    i_tzt="$i_tzt  ,(3, 1572130800, 8) ,(3, 1585436400, 9)"    i_tzt="$i_tzt  ,(3, 1603580400, 8) ,(3, 1616886000, 9)"    i_tzt="$i_tzt  ,(3, 1635634800, 8) ,(3, 1648335600, 9)"    i_tzt="$i_tzt  ,(3, 1667084400, 8) ,(3, 1679785200, 9)"    i_tzt="$i_tzt  ,(3, 1698534000, 8) ,(3, 1711839600, 9)"    i_tzt="$i_tzt  ,(3, 1729983600, 8) ,(3, 1743289200, 9)"    i_tzt="$i_tzt  ,(3, 1761433200, 8) ,(3, 1774738800, 9)"    i_tzt="$i_tzt  ,(3, 1792882800, 8) ,(3, 1806188400, 9)"    i_tzt="$i_tzt  ,(3, 1824937200, 8) ,(3, 1837638000, 9)"    i_tzt="$i_tzt  ,(3, 1856386800, 8) ,(3, 1869087600, 9)"    i_tzt="$i_tzt  ,(3, 1887836400, 8) ,(3, 1901142000, 9)"    i_tzt="$i_tzt  ,(3, 1919286000, 8) ,(3, 1932591600, 9)"    i_tzt="$i_tzt  ,(3, 1950735600, 8) ,(3, 1964041200, 9)"    i_tzt="$i_tzt  ,(3, 1982790000, 8) ,(3, 1995490800, 9)"    i_tzt="$i_tzt  ,(3, 2014239600, 8) ,(3, 2026940400, 9)"    i_tzt="$i_tzt  ,(3, 2045689200, 8) ,(3, 2058390000, 9)"    i_tzt="$i_tzt  ,(3, 2077138800, 8) ,(3, 2090444400, 9)"    i_tzt="$i_tzt  ,(3, 2108588400, 8) ,(3, 2121894000, 9)"    i_tzt="$i_tzt  ,(3, 2140038000, 8)"    i_tzt="$i_tzt  ,(4, -1688265000, 2) ,(4, -1656819048, 1)"    i_tzt="$i_tzt  ,(4, -1641353448, 2) ,(4, -1627965048, 3)"    i_tzt="$i_tzt  ,(4, -1618716648, 1) ,(4, -1596429048, 3)"    i_tzt="$i_tzt  ,(4, -1593829848, 5) ,(4, -1589860800, 4)"    i_tzt="$i_tzt  ,(4, -1542427200, 5) ,(4, -1539493200, 6)"    i_tzt="$i_tzt  ,(4, -1525323600, 5) ,(4, -1522728000, 4)"    i_tzt="$i_tzt  ,(4, -1491188400, 7) ,(4, -1247536800, 4)"    i_tzt="$i_tzt  ,(4, 354920409, 5) ,(4, 370728010, 4)"    i_tzt="$i_tzt  ,(4, 386456410, 5) ,(4, 402264011, 4)"    i_tzt="$i_tzt  ,(4, 417992411, 5) ,(4, 433800012, 4)"    i_tzt="$i_tzt  ,(4, 449614812, 5) ,(4, 465346812, 8)"    i_tzt="$i_tzt  ,(4, 481071612, 9) ,(4, 496796413, 8)"    i_tzt="$i_tzt  ,(4, 512521213, 9) ,(4, 528246013, 8)"    i_tzt="$i_tzt  ,(4, 543970813, 9) ,(4, 559695613, 8)"    i_tzt="$i_tzt  ,(4, 575420414, 9) ,(4, 591145214, 8)"    i_tzt="$i_tzt  ,(4, 606870014, 9) ,(4, 622594814, 8)"    i_tzt="$i_tzt  ,(4, 638319615, 9) ,(4, 654649215, 8)"    i_tzt="$i_tzt  ,(4, 670374016, 10) ,(4, 686102416, 11)"    i_tzt="$i_tzt  ,(4, 695779216, 8) ,(4, 701812816, 5)"    i_tzt="$i_tzt  ,(4, 717534017, 4) ,(4, 733273217, 9)"    i_tzt="$i_tzt  ,(4, 748998018, 8) ,(4, 764722818, 9)"    i_tzt="$i_tzt  ,(4, 780447619, 8) ,(4, 796172419, 9)"    i_tzt="$i_tzt  ,(4, 811897219, 8) ,(4, 828226820, 9)"    i_tzt="$i_tzt  ,(4, 846370820, 8) ,(4, 859676420, 9)"    i_tzt="$i_tzt  ,(4, 877820421, 8) ,(4, 891126021, 9)"    i_tzt="$i_tzt  ,(4, 909270021, 8) ,(4, 922575622, 9)"    i_tzt="$i_tzt  ,(4, 941324422, 8) ,(4, 954025222, 9)"    i_tzt="$i_tzt  ,(4, 972774022, 8) ,(4, 985474822, 9)"    i_tzt="$i_tzt  ,(4, 1004223622, 8) ,(4, 1017529222, 9)"    i_tzt="$i_tzt  ,(4, 1035673222, 8) ,(4, 1048978822, 9)"    i_tzt="$i_tzt  ,(4, 1067122822, 8) ,(4, 1080428422, 9)"    i_tzt="$i_tzt  ,(4, 1099177222, 8) ,(4, 1111878022, 9)"    i_tzt="$i_tzt  ,(4, 1130626822, 8) ,(4, 1143327622, 9)"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -