<p dir="ltr">You are asked during install if you want to connect from other machines</p>
<br><div class="gmail_quote"><div dir="ltr">On Wed, Apr 27, 2016, 4:48 AM Damian <<a href="mailto:myth@surr.co.uk">myth@surr.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 26/04/2016 22:05, Hika van den Hoven wrote:<br>
> Hoi Damian,<br>
><br>
> Tuesday, April 26, 2016, 10:50:56 PM, you wrote:<br>
><br>
>> Hi Everyone,<br>
><br>
>> I've got the shiny new Xubuntu 16.04 freshly installed on all of my<br>
>> machines. I'm just starting to add Mythbuntu backend onto the server<br>
>> machine tonight, and I'm having problems already.<br>
><br>
>> The backend can't connect to mysql.<br>
><br>
>> I can log in as root ...<br>
>> mysql -u root -p<br>
>> ... gets me in fine.<br>
><br>
>> I can log in as mythtv ...<br>
>> mysql -u mythtv -p<br>
>> ... gets me in fine.<br>
><br>
>> However, this ...<br>
>> mysql -u mythtv -p -h 192.168.0.2<br>
>> ... responds with:<br>
>> ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.0.2' (111)<br>
><br>
>> I don't understand this. Why can I not log in when I specify the<br>
>> computer's own IP address?<br>
><br>
>> ifconfig confirms that "inet addr:192.168.0.2"<br>
><br>
>> I just checked, and I can log in with " mysql -u mythtv -p -h<br>
>> 127.0.0.1". It's just adding the real IP address that's not working.<br>
><br>
>> I assume this is the source of the problem. Any idea what's causing this?<br>
><br>
>> Thanks,<br>
>> Damian<br>
>> _______________________________________________<br>
><br>
> Two possible reasons:<br>
> 1: You did not edit your my.conf to listen outside the machine<br>
>    e.g. Changing bind-address from 127.0.0.1 to either 0.0.0.0 or the<br>
>    actual address<br>
> 2: You did not add a password for those locations. A login name in<br>
>    mysql consists of the name and the machine. So for root you have<br>
>    have one for 127.0.0.1, localhost, the actual hostname, %, or any<br>
>    ip-address, hostname or subnet.<br>
><br>
<br>
Thanks Hika,<br>
<br>
Peter's suggestion of editing "/etc/mysql/mysql.conf.d/mysqld.cnf" and<br>
commenting out "bind-address = 127.0.0.1" sorted it.<br>
<br>
Regards,<br>
Damian<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><br>
</blockquote></div><div dir="ltr">-- <br></div><div dir="ltr">Thomas Mashos</div>