mysql_relations.inc.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Internal relations for mysql database.
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. if (! defined('PHPMYADMIN')) {
  9. exit;
  10. }
  11. /**
  12. * Internal relations for mysql database.
  13. */
  14. $GLOBALS['mysql_relations'] = array(
  15. 'columns_priv' => array(
  16. 'Db' => array(
  17. 'foreign_db' => 'information_schema',
  18. 'foreign_table' => 'SCHEMATA',
  19. 'foreign_field' => 'SCHEMA_NAME'
  20. ),
  21. ),
  22. 'db' => array(
  23. 'Db' => array(
  24. 'foreign_db' => 'information_schema',
  25. 'foreign_table' => 'SCHEMATA',
  26. 'foreign_field' => 'SCHEMA_NAME'
  27. ),
  28. ),
  29. 'event' => array(
  30. 'db' => array(
  31. 'foreign_db' => 'information_schema',
  32. 'foreign_table' => 'SCHEMATA',
  33. 'foreign_field' => 'SCHEMA_NAME'
  34. ),
  35. 'character_set_client' => array(
  36. 'foreign_db' => 'information_schema',
  37. 'foreign_table' => 'CHARACTER_SETS',
  38. 'foreign_field' => 'CHARACTER_SET_NAME'
  39. ),
  40. 'collation_connection' => array(
  41. 'foreign_db' => 'information_schema',
  42. 'foreign_table' => 'COLLATIONS',
  43. 'foreign_field' => 'COLLATION_NAME'
  44. ),
  45. 'db_collation' => array(
  46. 'foreign_db' => 'information_schema',
  47. 'foreign_table' => 'COLLATIONS',
  48. 'foreign_field' => 'COLLATION_NAME'
  49. ),
  50. ),
  51. 'help_category' => array(
  52. 'parent_category_id' => array(
  53. 'foreign_db' => 'mysql',
  54. 'foreign_table' => 'help_category',
  55. 'foreign_field' => 'help_category_id'
  56. ),
  57. ),
  58. 'help_relation' => array(
  59. 'help_topic_id' => array(
  60. 'foreign_db' => 'mysql',
  61. 'foreign_table' => 'help_topic',
  62. 'foreign_field' => 'help_topic_id'
  63. ),
  64. 'help_keyword_id' => array(
  65. 'foreign_db' => 'mysql',
  66. 'foreign_table' => 'help_keyword',
  67. 'foreign_field' => 'help_keyword_id'
  68. ),
  69. ),
  70. 'help_topic' => array(
  71. 'help_category_id' => array(
  72. 'foreign_db' => 'mysql',
  73. 'foreign_table' => 'help_category',
  74. 'foreign_field' => 'help_category_id'
  75. ),
  76. ),
  77. 'innodb_index_stats' => array(
  78. 'database_name' => array(
  79. 'foreign_db' => 'information_schema',
  80. 'foreign_table' => 'SCHEMATA',
  81. 'foreign_field' => 'SCHEMA_NAME'
  82. ),
  83. ),
  84. 'innodb_table_stats' => array(
  85. 'database_name' => array(
  86. 'foreign_db' => 'information_schema',
  87. 'foreign_table' => 'SCHEMATA',
  88. 'foreign_field' => 'SCHEMA_NAME'
  89. ),
  90. ),
  91. 'proc' => array(
  92. 'db' => array(
  93. 'foreign_db' => 'information_schema',
  94. 'foreign_table' => 'SCHEMATA',
  95. 'foreign_field' => 'SCHEMA_NAME'
  96. ),
  97. 'character_set_client' => array(
  98. 'foreign_db' => 'information_schema',
  99. 'foreign_table' => 'CHARACTER_SETS',
  100. 'foreign_field' => 'CHARACTER_SET_NAME'
  101. ),
  102. 'collation_connection' => array(
  103. 'foreign_db' => 'information_schema',
  104. 'foreign_table' => 'COLLATIONS',
  105. 'foreign_field' => 'COLLATION_NAME'
  106. ),
  107. 'db_collation' => array(
  108. 'foreign_db' => 'information_schema',
  109. 'foreign_table' => 'COLLATIONS',
  110. 'foreign_field' => 'COLLATION_NAME'
  111. ),
  112. ),
  113. 'proc_priv' => array(
  114. 'Db' => array(
  115. 'foreign_db' => 'information_schema',
  116. 'foreign_table' => 'SCHEMATA',
  117. 'foreign_field' => 'SCHEMA_NAME'
  118. ),
  119. ),
  120. 'servers' => array(
  121. 'Db' => array(
  122. 'foreign_db' => 'information_schema',
  123. 'foreign_table' => 'SCHEMATA',
  124. 'foreign_field' => 'SCHEMA_NAME'
  125. ),
  126. ),
  127. 'slow_log' => array(
  128. 'db' => array(
  129. 'foreign_db' => 'information_schema',
  130. 'foreign_table' => 'SCHEMATA',
  131. 'foreign_field' => 'SCHEMA_NAME'
  132. ),
  133. ),
  134. 'tables_priv' => array(
  135. 'Db' => array(
  136. 'foreign_db' => 'information_schema',
  137. 'foreign_table' => 'SCHEMATA',
  138. 'foreign_field' => 'SCHEMA_NAME'
  139. ),
  140. ),
  141. 'time_zone_name' => array(
  142. 'Time_zone_id' => array(
  143. 'foreign_db' => 'mysql',
  144. 'foreign_table' => 'time_zone',
  145. 'foreign_field' => 'Time_zone_id'
  146. ),
  147. ),
  148. 'time_zone_transition' => array(
  149. 'Time_zone_id' => array(
  150. 'foreign_db' => 'mysql',
  151. 'foreign_table' => 'time_zone',
  152. 'foreign_field' => 'Time_zone_id'
  153. ),
  154. 'Transition_time' => array(
  155. 'foreign_db' => 'mysql',
  156. 'foreign_table' => 'time_zone_leap_second',
  157. 'foreign_field' => 'Transition_time'
  158. )
  159. ),
  160. 'time_zone_transition_type' => array(
  161. 'Time_zone_id' => array(
  162. 'foreign_db' => 'mysql',
  163. 'foreign_table' => 'time_zone',
  164. 'foreign_field' => 'Time_zone_id'
  165. ),
  166. ),
  167. );