[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu: services: Add mysql-service.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] gnu: services: Add mysql-service. |
Date: |
Thu, 16 Jun 2016 12:58:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
address@hidden (宋文武) skribis:
> address@hidden (Ludovic Courtès) writes:
>
>> Hello!
>>
>> 宋文武 <address@hidden> skribis:
[...]
>>> address@hidden {Data Type} mysql-configuration
>>> +Data type representing the configuration of @var{mysql-service}.
>>> +
>>> address@hidden @asis
>>> address@hidden @code{mysql} (default: @var{mariadb})
>>> +Package object of the MySQL database server, can be either @var{mariadb}
>>> +or @var{mysql}.
>>> address@hidden table
>>> address@hidden deftp
>>
>> Do you have plans to extend this type eventually?
> Not yet, should I use a simple keywoard argument instead?
No, that’s fine, just wondering.
>>> +(define (%mysql-activation config)
>>
>> Please add a docstring. IIUC it initializes the ‘mysql’ database for
>> user ‘mysql’, and that database contains configuration info, right?
> Yes, it does what ‘mysql_install_db’ and ‘mysql_secure_installation’
> do (which doesn’t work directly now due to missing coreutils, etc.
> in PATH).
OK, would be worth mentioning in a comment.
> And now I realize that this doesn't work for mysql,
> I need to rename this to ‘%mariadb-activation’ and write
> another ‘%mysql-activation’.
Oh, then maybe an additional configuration knob is needed to choose
between MariaDB and MySQL?
Thanks,
Ludo’.