summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2016-06-14 22:01:24 +0800
committer宋文武 <iyzsong@gmail.com>2016-06-16 21:26:50 +0800
commit6575183b2c4764c94da6de034dbc432272db1ead (patch)
treef765daca7285bd9881c12d8ba103c0e9ee462fea /doc
parent78d2fd3230185120f07938ee0ffded18cf74fafd (diff)
gnu: services: Add mysql-service.
* gnu/services/database.scm (<mysql-configuration>): New record type. (%mysql-accounts, mysql-service-type): New variables. (mysql-configuration-file, %mysql-activation, mysql-shepherd-services) (mysql-services): New procedures. * doc/guix.texi (Database Services): Document it.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi23
1 files changed, 22 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 227d8614825..cbecc3e96fd 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -8001,7 +8001,7 @@ web site} for more information.
8001@node Database Services 8001@node Database Services
8002@subsubsection Database Services 8002@subsubsection Database Services
8003 8003
8004The @code{(gnu services databases)} module provides the following service. 8004The @code{(gnu services databases)} module provides the following services.
8005 8005
8006@deffn {Scheme Procedure} postgresql-service [#:postgresql postgresql] @ 8006@deffn {Scheme Procedure} postgresql-service [#:postgresql postgresql] @
8007 [#:config-file] [#:data-directory ``/var/lib/postgresql/data''] 8007 [#:config-file] [#:data-directory ``/var/lib/postgresql/data'']
@@ -8013,6 +8013,27 @@ The PostgreSQL daemon loads its runtime configuration from
8013@var{data-directory}. 8013@var{data-directory}.
8014@end deffn 8014@end deffn
8015 8015
8016@deffn {Scheme Procedure} mysql-service [#:config (mysql-configuration)]
8017Return a service that runs @command{mysqld}, the MySQL or MariaDB
8018database server.
8019
8020The optional @var{config} argument specifies the configuration for
8021@command{mysqld}, which should be a @code{<mysql-configuraiton>} object.
8022@end deffn
8023
8024@deftp {Data Type} mysql-configuration
8025Data type representing the configuration of @var{mysql-service}.
8026
8027@table @asis
8028@item @code{mysql} (default: @var{mariadb})
8029Package object of the MySQL database server, can be either @var{mariadb}
8030or @var{mysql}.
8031
8032For MySQL, a temorary root password will be displayed at activation time.
8033For MariaDB, the root password is empty.
8034@end table
8035@end deftp
8036
8016@node Mail Services 8037@node Mail Services
8017@subsubsection Mail Services 8038@subsubsection Mail Services
8018 8039