aboutsummaryrefslogtreecommitdiff
path: root/doc/ex-meta1.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ex-meta1.texi')
-rw-r--r--doc/ex-meta1.texi10
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/ex-meta1.texi b/doc/ex-meta1.texi
index d74b49c..a62b4be 100644
--- a/doc/ex-meta1.texi
+++ b/doc/ex-meta1.texi
@@ -13,19 +13,18 @@ of which uses a separate configuration file.
13 To reduce the number of connections to the @acronym{MySQL} server, 13 To reduce the number of connections to the @acronym{MySQL} server,
14the @acronym{MySQL} database will be opened at the module level and 14the @acronym{MySQL} database will be opened at the module level and
15shared between the two smap databases. Thus, the module 15shared between the two smap databases. Thus, the module
16initialization in @file{smapd.conf} looks like: 16initialization in @file{smapd.conf} looks like:
17 17
18@example 18@example
19module mysql mysql open config-group=smap 19module mysql mysql config-group=smap
20@end example 20@end example
21 21
22The @samp{open} parameter instructs the module to open the requested 22The @samp{config-group} parameter refers to a group name in the
23databases. The @samp{config-group} parameter refers to a group 23default @file{/etc/my.cnf} file that contains information about the
24name in the default @file{/etc/my.cnf} file that contains information 24@acronym{MySQL} database and credentials for accessing it.
25about the @acronym{MySQL} database and credentials for accessing it.
26The following is a sample snippet from @file{/etc/my.cnf}: 25The following is a sample snippet from @file{/etc/my.cnf}:
27 26
28@example 27@example
29[smap] 28[smap]
30database = Mail 29database = Mail
31user = smap 30user = smap
@@ -58,13 +57,12 @@ CREATE TABLE userdb (
58 57
59The smap database is defined as follows: 58The smap database is defined as follows:
60 59
61@example 60@example
62@group 61@group
63database userdb mysql \ 62database userdb mysql \
64 defaultdb
65 query="SELECT user FROM userdb WHERE user='$key'" 63 query="SELECT user FROM userdb WHERE user='$key'"
66 positive-reply=OK 64 positive-reply=OK
67@end group 65@end group
68@end example 66@end example
69 67
70The @samp{defaultdb} parameter tells it to use the default SQL 68The @samp{defaultdb} parameter tells it to use the default SQL

Return to:

Send suggestions and report system problems to the System administrator.