<div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 9, 2020 at 8:06 PM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</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">On Thu, 9 Jul 2020 14:58:27 -0500, you wrote:<br>
<br>
>On Thu, Jul 9, 2020 at 2:42 PM George Bingham <<a href="mailto:georgeb1962@gmail.com" target="_blank">georgeb1962@gmail.com</a>> wrote:<br>
><br>
>> Hello all,<br>
>><br>
>> I've had a functioning 31 fixes combo fe/be running for a few weeks.<br>
>><br>
>> Today I got frontend 31 installed on a laptop and so I am trying to enable<br>
>> it to access the backend.<br>
>><br>
>> To that end I know I have to set mysql to accept connections from the<br>
>> network, but my attempts don't seem to be working.<br>
>><br>
>> I have in /etc/mysql two "bind-address" lines, one in conf.d/mythtv.cnf,<br>
>> and one in mysql.conf.d/mysqld.cnf. They are both set to the IP address of<br>
>> my mythtv backend machine (where the database is running too).<br>
>><br>
>> When I start either mythtv-setup, I get the screen where it's not able to<br>
>> connect to the database. Starting the backend similarly results in the<br>
>> lines attempting to access the database repeatedly in the backend log file.<br>
>><br>
>> Similarly, cannot connect from the frontend machine either.<br>
>><br>
>> I CAN connect from the laptop (remote frontend) via mysql directly<br>
>> however, so I know the database is running and able to accept networked<br>
>> connections. I just don't know what's going wrong with either the backend<br>
>> or the frontend not being able to connect.<br>
>><br>
>> I am sure it's something simple, but currently at a loss!<br>
>><br>
>> Help?<br>
>><br>
>> Thanks,<br>
>> -- George<br>
>><br>
><br>
>Nevermind. Simply changing the "bind-address" to * instead of the IP<br>
>address was the answer.<br>
><br>
>Sorry to waste this valuable resource!<br>
<br>
If you are using IPv6 on your network, you should use :: instead of *.<br>
<br>
The reason that the backend was unhappy when you set a specific IP<br>
address for the mysql bind-address was that you had not changed the IP<br>
address the backend was connecting to so that it also used that<br>
specific address. So the backend was still trying to connect on<br>
localhost (127.0.0.1) and mysqld was not listening on localhost any<br>
more. Leaving the backend connecting on localhost to mysql is good -<br>
it gets a much faster connection that way. Only external connections<br>
should be using the external IP address to talk to mysql.<br>
<br>
When you have more than one bind-address line in your mysql config<br>
files, it is best to comment out one of them (put a # character at the<br>
start of the line). There is a specific order that the config files<br>
are read in, and only one of those bind-address settings will actually<br>
be working, which will be the last one that gets read.<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a></blockquote><div><br></div><div>Hi Stephen,</div><div><br></div><div>Thanks for the info!</div><div><br></div><div>In mythtv-setup, I reset the IP Address to 127.0.0.1, so now the backend is connecting directly to the database?</div><div><br></div><div>well, that works for the FE/BE, but not the remote frontend. How do you make the local frontend connect directly, while still using the network for remote connections? </div><div><br></div><div>Thanks,</div><div><br></div><div>George</div><div><br></div><div><br></div><div> </div></div></div>