aboutsummaryrefslogtreecommitdiff
path: root/doc/guix.texi
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/guix.texi
parent78d2fd3230185120f07938ee0ffded18cf74fafd (diff)
downloadguix-6575183b2c4764c94da6de034dbc432272db1ead.tar
guix-6575183b2c4764c94da6de034dbc432272db1ead.tar.gz
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/guix.texi')
-rw-r--r--doc/guix.texi23
1 files changed, 22 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 227d861482..cbecc3e96f 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -8001,7 +8001,7 @@ web site} for more information.
@node Database Services
@subsubsection Database Services
-The @code{(gnu services databases)} module provides the following service.
+The @code{(gnu services databases)} module provides the following services.
@deffn {Scheme Procedure} postgresql-service [#:postgresql postgresql] @
[#:config-file] [#:data-directory ``/var/lib/postgresql/data'']
@@ -8013,6 +8013,27 @@ The PostgreSQL daemon loads its runtime configuration from
@var{data-directory}.
@end deffn
+@deffn {Scheme Procedure} mysql-service [#:config (mysql-configuration)]
+Return a service that runs @command{mysqld}, the MySQL or MariaDB
+database server.
+
+The optional @var{config} argument specifies the configuration for
+@command{mysqld}, which should be a @code{<mysql-configuraiton>} object.
+@end deffn
+
+@deftp {Data Type} mysql-configuration
+Data type representing the configuration of @var{mysql-service}.
+
+@table @asis
+@item @code{mysql} (default: @var{mariadb})
+Package object of the MySQL database server, can be either @var{mariadb}
+or @var{mysql}.
+
+For MySQL, a temorary root password will be displayed at activation time.
+For MariaDB, the root password is empty.
+@end table
+@end deftp
+
@node Mail Services
@subsubsection Mail Services