admin管理员组文章数量:1335727
Running into an issue which I'm sure is an easy fix, but I just can't find my way to it. New installation of mariadb-server 11.4 on Ubuntu.
Have the installed default f file in /etc/mysql/mariadb.conf.d/50-serverf
Starting the server via sudo systemctl start mariadb
does NOT read this f file. I'm specifically attempting to change the datadir
, but I've even gone as far as adding an intentional syntax error in the file to prove that it's not being read/processed.
Starting the mariadb client via mariadb
reads the f file without a problem, it indicates the syntax error on line 4 as expected.
But starting via systemctl, doesn't change the datadir nor raises an error.
I've additionally added a /etc/mysql/myf file just to be sure:
[mariadbd]
!includedir /etc/mysql/mariadb.conf.d/
mariadbd --verbose --help
returns
Default options are read from the following files in the given order:
/etc/myf /etc/mysql/myf ~/.myf
The following groups are read: mysqld server mysqld-11.4 mariadb mariadb-11.4 mariadbd mariadbd-11.4 client-server galera
.....
datadir /var/lib/mysql/
And lastly, the 50-serverf
file is default other than the datadir line
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
xxxx # intentional syntax error
# this is read by the standalone daemon and embedded servers
[server]
# this is only for the mariadbd daemon
[mariadbd]
#
# * Basic Settings
#
#user = mysql
pid-file = /run/mysqld/mysqld.pid
basedir = /usr
datadir = /mysql/data
#tmpdir = /tmp
<< remainder cut >>
Any suggestions?
本文标签: MariaDB starting up without reading config fileStack Overflow
版权声明:本文标题:MariaDB starting up without reading config file - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742390623a2465914.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论