diff options
| author | 宋文武 <iyzsong@gmail.com> | 2016-06-14 22:01:24 +0800 |
|---|---|---|
| committer | 宋文武 <iyzsong@gmail.com> | 2016-06-16 21:26:50 +0800 |
| commit | 6575183b2c4764c94da6de034dbc432272db1ead (patch) | |
| tree | f765daca7285bd9881c12d8ba103c0e9ee462fea /doc | |
| parent | 78d2fd3230185120f07938ee0ffded18cf74fafd (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.texi | 23 |
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 | ||
| 8004 | The @code{(gnu services databases)} module provides the following service. | 8004 | The @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)] | ||
| 8017 | Return a service that runs @command{mysqld}, the MySQL or MariaDB | ||
| 8018 | database server. | ||
| 8019 | |||
| 8020 | The 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 | ||
| 8025 | Data type representing the configuration of @var{mysql-service}. | ||
| 8026 | |||
| 8027 | @table @asis | ||
| 8028 | @item @code{mysql} (default: @var{mariadb}) | ||
| 8029 | Package object of the MySQL database server, can be either @var{mariadb} | ||
| 8030 | or @var{mysql}. | ||
| 8031 | |||
| 8032 | For MySQL, a temorary root password will be displayed at activation time. | ||
| 8033 | For 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 | ||
