<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 26, 2022 at 8:30 AM Barry Martin <<a href="mailto:barry3martin@gmail.com">barry3martin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi Jim!<br>
> I found the file with the bind_address=:: needed to be moved to<br>
> mariadb.conf.d because of the search order. That allowed the FireTV to<br>
> connect using the UPNP search.<br>
<br>
Stephen Worthington suggested to me to create the file <br>
/etc/mysql/conf.d/zz-local-options.cnf containing these two lines:<br>
<br>
[mysqld]<br>
bind-address=::<br>
<br>
<br>
(Also note it's a hyphen vs. an underscore.) Stephen indicates the zz <br>
file was read last.<br>
<br>
<br>
Barry<br></blockquote><div><br></div><div>I was wondering where to put the bind-address=:: </div><div>If you read the my.cnf file it shows the order as:</div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">The MariaDB/MySQL tools read configuration files in the following order:
</span><br># 0. "/etc/mysql/my.cnf" symlinks to this file, the reason why all the rest is read.
<br># 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
<br># 2. "/etc/mysql/conf.d/*.cnf" to set global options.
<br># 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
<br># 4. "~/.my.cnf" to set user-specific options.<br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">So the bind-address option in </span>/etc/mysql/conf.d/zz-local-options.cnf would be overwritten by</div><div>the bind-address option in mythtv.cnf in the mariadb.conf.d/ directory.</div><div><br></div><div>From what I read, it searches in the file order above and alphabetically within the directory.</div><div>I used grep to find how many bind-address options I already have:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">sudo grep -r "bind-address" *
</span><br>conf.d/mythtv.cnf:bind-address=::
<br>mariadb.conf.d/60-galera.cnf:#bind-address = 0.0.0.0
<br>mariadb.conf.d/50-server.cnf:bind-address = 127.0.0.1
<br>mariadb.conf.d/mythtv.cnf:bind-address=::
<br><br></span></div><div><span style="font-family:monospace">So I can see how the conf.d/mythtv.cnf file entry was getting overwritten by the mariadb.conf.d/50-server.cnf entry.</span></div><div>I'm not sure having any file by any name in conf.d will not get overwritten by any file in mariadb.conf.d that includes the bind-address option.</div><div><br></div><div>For me it was simpler to duplicate the mythtv.cnf file in conf.d and mariadb.conf.d directories.</div><div><br></div><div>Jim A<br></div><div><br></div><div><br></div><div><br></div></div></div>