mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
services: MySQL: Bind to localhost only by default.
* gnu/services/databases.scm (<mysql-configuration>): Add BIND-ADDRESS field. (mysql-configuration-file): Adjust accordingly. * doc/guix.texi (Database Services): Document it.
This commit is contained in:
parent
89b704a456
commit
27d7cdbf87
2 changed files with 7 additions and 1 deletions
|
@ -465,6 +465,7 @@ storage:
|
|||
mysql-configuration make-mysql-configuration
|
||||
mysql-configuration?
|
||||
(mysql mysql-configuration-mysql (default mariadb))
|
||||
(bind-address mysql-configuration-bind-address (default "127.0.0.1"))
|
||||
(port mysql-configuration-port (default 3306))
|
||||
(extra-content mysql-configuration-extra-content (default "")))
|
||||
|
||||
|
@ -481,10 +482,11 @@ storage:
|
|||
|
||||
(define mysql-configuration-file
|
||||
(match-lambda
|
||||
(($ <mysql-configuration> mysql port extra-content)
|
||||
(($ <mysql-configuration> mysql bind-address port extra-content)
|
||||
(mixed-text-file "my.cnf" "[mysqld]
|
||||
datadir=/var/lib/mysql
|
||||
socket=/run/mysqld/mysqld.sock
|
||||
bind-address=" bind-address "
|
||||
port=" (number->string port) "
|
||||
" extra-content "
|
||||
"))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue