Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2017 20:30:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 224294] databases/mariadb102-server
Message-ID:  <bug-224294-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224294

            Bug ID: 224294
           Summary: databases/mariadb102-server
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: brnrd@freebsd.org
          Reporter: swa@section66.com
          Assignee: brnrd@freebsd.org
             Flags: maintainer-feedback?(brnrd@freebsd.org)

The package as distributed

        mariadb102-server: 10.2.10

says upon installation via=20

# pkg install mariadb10.2-server

"
MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for
my.cnf. Please move existing my.cnf files from those paths to
/usr/local/etc and /usr/local/etc/mysql.
"

YET ...

the installed /usr/local/etc/rc.d/mysql-server

contains

# mysql_(instance_)?optfile (str): Server-specific option file.
#                       Default to "${mysql_dbdir}/my.cnf".

which defaults to /var/db/mysql/my.cnf and not /usr/local/etc/my.cnf nor
/usr/local/etc/mysql/my.cnf

And which also adds --defaults-extra-file=3D/var/db/mysql/my.cnf to it's ca=
ll to
mysqld_safe when starting it all.

suggested solution:

Easiest solution is to adapt the messages when installing the package as
that'll cause the least trouble for those using it already.

The messages in mysql_prestart() in should also be adapted as it too encour=
ages
/usr/local/etc and /usr/local/etc/mysql to be used instead of /etc/ and
/etc/mysql (suggest it to show the location it will actually use as it has =
that
info.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224294-13>