|
| 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'] = 'JnavIRZwZf9b2JYTlC8AYDhXo9HRLN1s'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ |
| 18 | + |
| 19 | +/** |
| 20 | + * Servers configuration |
| 21 | + */ |
| 22 | +$i = 0; |
| 23 | +$mysqlPort = 3306; |
| 24 | +$mysqlRootUser = 'root'; |
| 25 | +$mysqlRootPwd = ''; |
| 26 | +$mariadbPort = 3307; |
| 27 | +$mariadbRootUser = 'root'; |
| 28 | +$mariadbRootPwd = ''; |
| 29 | + |
| 30 | +/** |
| 31 | + * MySQL server |
| 32 | + */ |
| 33 | +$i++; |
| 34 | + |
| 35 | +$cfg['Servers'][$i]['verbose'] = 'MySQL port ' . $mysqlPort; |
| 36 | +$cfg['Servers'][$i]['port'] = $mysqlPort; |
| 37 | +$cfg['Servers'][$i]['user'] = $mysqlRootUser; |
| 38 | +$cfg['Servers'][$i]['password'] = $mysqlRootPwd; |
| 39 | +$cfg['Servers'][$i]['auth_type'] = 'cookie'; |
| 40 | +$cfg['Servers'][$i]['host'] = '127.0.0.1'; |
| 41 | +$cfg['Servers'][$i]['connect_type'] = 'tcp'; |
| 42 | +$cfg['Servers'][$i]['compress'] = false; |
| 43 | +$cfg['Servers'][$i]['extension'] = 'mysqli'; |
| 44 | +$cfg['Servers'][$i]['AllowNoPassword'] = true; |
| 45 | + |
| 46 | +/** |
| 47 | + * MariaDB server |
| 48 | + */ |
| 49 | +$i++; |
| 50 | + |
| 51 | +$cfg['Servers'][$i]['verbose'] = 'MariaDB port ' . $mariadbPort; |
| 52 | +$cfg['Servers'][$i]['port'] = $mariadbPort; |
| 53 | +$cfg['Servers'][$i]['user'] = $mariadbRootUser; |
| 54 | +$cfg['Servers'][$i]['password'] = $mariadbRootPwd; |
| 55 | +$cfg['Servers'][$i]['auth_type'] = 'cookie'; |
| 56 | +$cfg['Servers'][$i]['host'] = '127.0.0.1'; |
| 57 | +$cfg['Servers'][$i]['connect_type'] = 'tcp'; |
| 58 | +$cfg['Servers'][$i]['compress'] = false; |
| 59 | +$cfg['Servers'][$i]['extension'] = 'mysqli'; |
| 60 | +$cfg['Servers'][$i]['AllowNoPassword'] = true; |
| 61 | + |
| 62 | +/** |
| 63 | + * End of servers configuration |
| 64 | + */ |
| 65 | + |
| 66 | +/** |
| 67 | + * Directories for saving/loading files from server |
| 68 | + */ |
| 69 | +$cfg['UploadDir'] = ''; |
| 70 | +$cfg['SaveDir'] = ''; |
| 71 | + |
| 72 | +/** |
| 73 | + * Whether to display icons or text or both icons and text in table row |
| 74 | + * action segment. Value can be either of 'icons', 'text' or 'both'. |
| 75 | + * default = 'both' |
| 76 | + */ |
| 77 | +//$cfg['RowActionType'] = 'icons'; |
| 78 | + |
| 79 | +/** |
| 80 | + * Defines whether a user should be displayed a "show all (records)" |
| 81 | + * button in browse mode or not. |
| 82 | + * default = false |
| 83 | + */ |
| 84 | +//$cfg['ShowAll'] = true; |
| 85 | + |
| 86 | +/** |
| 87 | + * Number of rows displayed when browsing a result set. If the result |
| 88 | + * set contains more rows, "Previous" and "Next". |
| 89 | + * Possible values: 25, 50, 100, 250, 500 |
| 90 | + * default = 25 |
| 91 | + */ |
| 92 | +//$cfg['MaxRows'] = 50; |
| 93 | + |
| 94 | +/** |
| 95 | + * Disallow editing of binary fields |
| 96 | + * valid values are: |
| 97 | + * false allow editing |
| 98 | + * 'blob' allow editing except for BLOB fields |
| 99 | + * 'noblob' disallow editing except for BLOB fields |
| 100 | + * 'all' disallow editing |
| 101 | + * default = 'blob' |
| 102 | + */ |
| 103 | +//$cfg['ProtectBinary'] = false; |
| 104 | + |
| 105 | +/** |
| 106 | + * Default language to use, if not browser-defined or user-defined |
| 107 | + * (you find all languages in the locale folder) |
| 108 | + * uncomment the desired line: |
| 109 | + * default = 'en' |
| 110 | + */ |
| 111 | +//$cfg['DefaultLang'] = 'en'; |
| 112 | +//$cfg['DefaultLang'] = 'de'; |
| 113 | + |
| 114 | +/** |
| 115 | + * How many columns should be used for table display of a database? |
| 116 | + * (a value larger than 1 results in some information being hidden) |
| 117 | + * default = 1 |
| 118 | + */ |
| 119 | +//$cfg['PropertiesNumColumns'] = 2; |
| 120 | + |
| 121 | +/** |
| 122 | + * Set to true if you want DB-based query history.If false, this utilizes |
| 123 | + * JS-routines to display query history (lost by window close) |
| 124 | + * |
| 125 | + * This requires configuration storage enabled, see above. |
| 126 | + * default = false |
| 127 | + */ |
| 128 | +//$cfg['QueryHistoryDB'] = true; |
| 129 | + |
| 130 | +/** |
| 131 | + * When using DB-based query history, how many entries should be kept? |
| 132 | + * default = 25 |
| 133 | + */ |
| 134 | +//$cfg['QueryHistoryMax'] = 100; |
| 135 | + |
| 136 | +/** |
| 137 | + * Whether or not to query the user before sending the error report to |
| 138 | + * the phpMyAdmin team when a JavaScript error occurs |
| 139 | + * |
| 140 | + * Available options |
| 141 | + * ('ask' | 'always' | 'never') |
| 142 | + * default = 'ask' |
| 143 | + */ |
| 144 | +//$cfg['SendErrorReports'] = 'always'; |
| 145 | + |
| 146 | +/** |
| 147 | + * You can find more configuration options in the documentation |
| 148 | + * in the doc/ folder or at <https://docs.phpmyadmin.net/>. |
| 149 | + */ |
| 150 | +$cfg['ServerDefault'] = 1; |
| 151 | +$cfg['ProtectBinary'] = 'false'; |
0 commit comments