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