Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.98 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 <http://docs.phpmyadmin.net/>.
  9. *
  10. * @package PhpMyAdmin
  11. */
  12.  
  13. /*
  14. * This is needed for cookie based authentication to encrypt password in
  15. * cookie
  16. */
  17. $cfg['blowfish_secret'] = 'a8b7c88888888888nsd'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
  18.  
  19.  
  20. /**
  21. * * maximum execution time in seconds (0 for no limit)
  22. * *
  23. * * @global integer $cfg['ExecTimeLimit']
  24. * */
  25. $cfg['ExecTimeLimit'] = 0;
  26. # jasb, misc confs #
  27. // utf8mb4
  28. // utf8mb4_general_ci
  29. //
  30. // https://stackoverflow.com/questions/30074492/what-is-the-difference-between-utf8mb4-and-utf8-charsets-in-mysql
  31. // 3 bytes, 4 bytes para emoji por ex
  32. $cfg['DefaultCharset'] = 'utf8mb4';
  33. $cfg['DefaultConnectionCollation'] = 'utf8mb4_general_ci';
  34.  
  35. //$cfg['DBG']['sqllog'] = true;
  36.  
  37.  
  38. /*
  39. * Servers configuration
  40. */
  41. $i = 0;
  42.  
  43. /*
  44. * First server
  45. */
  46. $i++;
  47. /* Authentication type */
  48. $cfg['Servers'][$i]['verbose'] = 'FastWeb';
  49. $cfg['Servers'][$i]['auth_type'] = 'cookie';
  50. /* Server parameters */
  51. $cfg['Servers'][$i]['host'] = 'localhost';
  52. $cfg['Servers'][$i]['connect_type'] = 'socket'; //'tcp';
  53. $cfg['Servers'][$i]['compress'] = false;
  54. /* Select mysql if your server does not have mysqli */
  55. $cfg['Servers'][$i]['extension'] = 'mysqli';
  56. $cfg['Servers'][$i]['AllowNoPassword'] = false;
  57.  
  58.  
  59.  
  60. $cfg['LoginCookieValidity'] = 60 * 60 * 24; // 24 horas de sessao
  61.  
  62.  
  63. /*
  64. * phpMyAdmin configuration storage settings.
  65. */
  66.  
  67. /* User used to manipulate with storage */
  68. $cfg['Servers'][$i]['controlhost'] = 'localhost';
  69. $cfg['Servers'][$i]['controluser'] = 'pma_user';
  70. $cfg['Servers'][$i]['controlpass'] = 'XXXXXXX';
  71.  
  72. /* Storage database and tables */
  73. $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  74. $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
  75. $cfg['Servers'][$i]['relation'] = 'pma__relation';
  76. $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
  77. $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
  78. $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
  79. $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
  80. $cfg['Servers'][$i]['history'] = 'pma__history';
  81. $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
  82. $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
  83. $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
  84. $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
  85. $cfg['Servers'][$i]['recent'] = 'pma__recent';
  86. $cfg['Servers'][$i]['users'] = 'pma__users';
  87. $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
  88. $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
  89. $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
  90.  
  91. $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
  92. $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
  93. $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
  94. $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
  95.  
  96.  
  97. $cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
  98. $cfg['Servers'][$i]['AllowDeny']['rules'] = array(
  99. 'deny root from all',
  100. 'allow root from 213.24.163.73/32',
  101. 'allow root from 84.91.45.131/32',
  102. 'allow root from 185.4.235.81/32',
  103. // 'allow root from 89.26.4.0/22',
  104. );
  105.  
  106.  
  107. /**
  108. * Disable use of INFORMATION_SCHEMA.
  109. *
  110. * @see https://github.com/phpmyadmin/phpmyadmin/issues/8970
  111. * @see https://bugs.mysql.com/19588
  112. * @global boolean $cfg['Servers'][$i]['DisableIS']
  113. */
  114. $cfg['Servers'][$i]['DisableIS'] = true;
  115.  
  116.  
  117. $i++;
  118. $cfg['Servers'][$i]['verbose'] = 'Flecha';
  119. $cfg['Servers'][$i]['auth_type'] = 'cookie';
  120. $cfg['Servers'][$i]['host'] = '192.168.69.221';
  121. $cfg['Servers'][$i]['connect_type'] = 'tcp';
  122. $cfg['Servers'][$i]['compress'] = false;
  123. $cfg['Servers'][$i]['extension'] = 'mysqli';
  124. $cfg['Servers'][$i]['AllowNoPassword'] = false;
  125.  
  126.  
  127. /* User used to manipulate with storage */
  128. $cfg['Servers'][$i]['controlhost'] = 'localhost';
  129. $cfg['Servers'][$i]['controluser'] = 'pma_user';
  130. $cfg['Servers'][$i]['controlpass'] = 'xxxxxx';
  131.  
  132. /* Storage database and tables */
  133. $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  134. $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
  135. $cfg['Servers'][$i]['relation'] = 'pma__relation';
  136. $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
  137. $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
  138. $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
  139. $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
  140. $cfg['Servers'][$i]['history'] = 'pma__history';
  141. $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
  142. $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
  143. $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
  144. $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
  145. $cfg['Servers'][$i]['recent'] = 'pma__recent';
  146. $cfg['Servers'][$i]['users'] = 'pma__users';
  147. $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
  148. $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
  149. $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
  150.  
  151. $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
  152. $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
  153. $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
  154. $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
  155.  
  156. $cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
  157. $cfg['Servers'][$i]['AllowDeny']['rules'] = array(
  158. 'deny root from all',
  159. 'allow root from 213.d.163.73/32',
  160. 'allow root from 84.9d.d.131/32',
  161. 'allow root from 176.2d.3d4.118/32',
  162. );
  163.  
  164.  
  165. /**
  166. * Disable use of INFORMATION_SCHEMA.
  167. *
  168. * @see https://github.com/phpmyadmin/phpmyadmin/issues/8970
  169. * @see https://bugs.mysql.com/19588
  170. * @global boolean $cfg['Servers'][$i]['DisableIS']
  171. */
  172. $cfg['Servers'][$i]['DisableIS'] = true;
  173.  
  174.  
  175. /*
  176. * Directories for saving/loading files from server
  177. */
  178. $cfg['UploadDir'] = '/tmp/';
  179. $cfg['SaveDir'] = '/tmp/';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement