Advertisement
dadang9

Untitled

Oct 25th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * phpMyAdmin sample configuration, you can use it as base for
  5. * manual configuration. For easier setup you can use setup/
  6. *
  7. * All directives are explained in documentation in the doc/ folder
  8. * or at <https://docs.phpmyadmin.net/>.
  9. *
  10. * @package PhpMyAdmin
  11. */
  12.  
  13. /**
  14. * This is needed for cookie based authentication to encrypt password in
  15. * cookie. Needs to be 32 chars long.
  16. */
  17. $cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
  18.  
  19. /**
  20. * Servers configuration
  21. */
  22. $i = 0;
  23.  
  24. /**
  25. * First server
  26. */
  27. $i++;
  28. /* Authentication type */
  29. $cfg['Servers'][$i]['auth_type'] = 'cookie';
  30. // $cfg['Servers'][$i]['controluser'] = 'pma';
  31. // $cfg['Servers'][$i]['controlpass'] = '';
  32. /* Server parameters */
  33. $cfg['Servers'][$i]['host'] = 'localhost';
  34. $cfg['Servers'][$i]['connect_type'] = 'tcp';
  35. $cfg['Servers'][$i]['compress'] = false;
  36. $cfg['Servers'][$i]['AllowNoPassword'] = false;
  37. $cfg['Servers'][$i]['socket'] = "/var/run/mysqld/mysqld.sock";
  38. $cfg['Servers'][$i]['port'] = '3306';
  39.  
  40. /**
  41. * phpMyAdmin configuration storage settings.
  42. */
  43.  
  44. /* User used to manipulate with storage */
  45. // $cfg['Servers'][$i]['controlhost'] = '';
  46. // $cfg['Servers'][$i]['controlport'] = '';
  47. $cfg['Servers'][$i]['controluser'] = 'pma';
  48. $cfg['Servers'][$i]['controlpass'] = '';
  49.  
  50. /* Storage database and tables */
  51. $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  52. $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
  53. $cfg['Servers'][$i]['relation'] = 'pma__relation';
  54. $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
  55. $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
  56. $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
  57. $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
  58. $cfg['Servers'][$i]['history'] = 'pma__history';
  59. $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
  60. $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
  61. $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
  62. $cfg['Servers'][$i]['recent'] = 'pma__recent';
  63. $cfg['Servers'][$i]['users'] = 'pma__users';
  64. $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
  65. $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
  66. $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
  67. $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
  68. $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
  69. $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
  70. $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
  71. $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
  72. // $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
  73. // $cfg['Servers'][$i]['users'] = 'pma__users';
  74. // $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
  75. // $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
  76. // $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
  77. // $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
  78. // $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
  79. // $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
  80.  
  81. /**
  82. * End of servers configuration
  83. */
  84.  
  85. /**
  86. * Directories for saving/loading files from server
  87. */
  88. $cfg['UploadDir'] = '';
  89. $cfg['SaveDir'] = '';
  90.  
  91. /**
  92. * Whether to display icons or text or both icons and text in table row
  93. * action segment. Value can be either of 'icons', 'text' or 'both'.
  94. * default = 'both'
  95. */
  96. //$cfg['RowActionType'] = 'icons';
  97.  
  98. /**
  99. * Defines whether a user should be displayed a "show all (records)"
  100. * button in browse mode or not.
  101. * default = false
  102. */
  103. //$cfg['ShowAll'] = true;
  104.  
  105. /**
  106. * Number of rows displayed when browsing a result set. If the result
  107. * set contains more rows, "Previous" and "Next".
  108. * Possible values: 25, 50, 100, 250, 500
  109. * default = 25
  110. */
  111. //$cfg['MaxRows'] = 50;
  112.  
  113. /**
  114. * Disallow editing of binary fields
  115. * valid values are:
  116. * false allow editing
  117. * 'blob' allow editing except for BLOB fields
  118. * 'noblob' disallow editing except for BLOB fields
  119. * 'all' disallow editing
  120. * default = 'blob'
  121. */
  122. //$cfg['ProtectBinary'] = false;
  123.  
  124. /**
  125. * Default language to use, if not browser-defined or user-defined
  126. * (you find all languages in the locale folder)
  127. * uncomment the desired line:
  128. * default = 'en'
  129. */
  130. //$cfg['DefaultLang'] = 'en';
  131. //$cfg['DefaultLang'] = 'de';
  132.  
  133. /**
  134. * How many columns should be used for table display of a database?
  135. * (a value larger than 1 results in some information being hidden)
  136. * default = 1
  137. */
  138. //$cfg['PropertiesNumColumns'] = 2;
  139.  
  140. /**
  141. * Set to true if you want DB-based query history.If false, this utilizes
  142. * JS-routines to display query history (lost by window close)
  143. *
  144. * This requires configuration storage enabled, see above.
  145. * default = false
  146. */
  147. //$cfg['QueryHistoryDB'] = true;
  148.  
  149. /**
  150. * When using DB-based query history, how many entries should be kept?
  151. * default = 25
  152. */
  153. //$cfg['QueryHistoryMax'] = 100;
  154.  
  155. /**
  156. * Whether or not to query the user before sending the error report to
  157. * the phpMyAdmin team when a JavaScript error occurs
  158. *
  159. * Available options
  160. * ('ask' | 'always' | 'never')
  161. * default = 'ask'
  162. */
  163. //$cfg['SendErrorReports'] = 'always';
  164.  
  165. /**
  166. * You can find more configuration options in the documentation
  167. * in the doc/ folder or at <https://docs.phpmyadmin.net/>.
  168. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement