diff options
author | Michal Čihař <mcihar@suse.cz> | 2012-02-13 16:32:00 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2012-02-13 16:32:03 +0400 |
commit | 8548929e03e93bcbb3df92c9ecc134b60e6a65a5 (patch) | |
tree | 8cd3ce716b8664cc5700b7940fc68e6056ae03f5 /examples/config.manyhosts.inc.php | |
parent | c25a7dcaaccca2248526ec54bbacbb7c947f9936 (diff) |
Add example for many hosts configuration
Taken from Debian package as I think it might be useful for others as
well.
Diffstat (limited to 'examples/config.manyhosts.inc.php')
-rw-r--r-- | examples/config.manyhosts.inc.php | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/config.manyhosts.inc.php b/examples/config.manyhosts.inc.php new file mode 100644 index 0000000000..d006cde699 --- /dev/null +++ b/examples/config.manyhosts.inc.php @@ -0,0 +1,43 @@ +<?php
+
+/**
+ * This example configuration shows how to configure phpMyAdmin for
+ * many hosts that all have identical configuration otherwise. To add
+ * a new host, just drop it into $hosts below. Contributed by
+ * Matthew Hawkins.
+ */
+
+$i=0;
+$hosts = array (
+ "foo.example.com",
+ "bar.example.com",
+ "baz.example.com",
+ "quux.example.com",
+);
+
+foreach ($hosts as $host) {
+ $i++;
+ $cfg['Servers'][$i]['host'] = $host;
+ $cfg['Servers'][$i]['port'] = '';
+ $cfg['Servers'][$i]['socket'] = '';
+ $cfg['Servers'][$i]['connect_type'] = 'tcp';
+ $cfg['Servers'][$i]['extension'] = 'mysql';
+ $cfg['Servers'][$i]['compress'] = FALSE;
+ $cfg['Servers'][$i]['controluser'] = 'pma';
+ $cfg['Servers'][$i]['controlpass'] = 'pmapass';
+ $cfg['Servers'][$i]['auth_type'] = 'cookie';
+ $cfg['Servers'][$i]['user'] = '';
+ $cfg['Servers'][$i]['password'] = '';
+ $cfg['Servers'][$i]['only_db'] = '';
+ $cfg['Servers'][$i]['verbose'] = '';
+ $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
+ $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
+ $cfg['Servers'][$i]['relation'] = 'pma_relation';
+ $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
+ $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
+ $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
+ $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
+ $cfg['Servers'][$i]['history'] = 'pma_history';
+ $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
+}
+
|