public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mark Knecht <markknecht@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] OT - mysql (WAS: [Re: OT - Need help with mythfronted GUI])
Date: Sun, 8 Jan 2006 13:54:42 -0800	[thread overview]
Message-ID: <5bdc1c8b0601081354r431b8cc2p9bab4463e0e4cd0e@mail.gmail.com> (raw)
In-Reply-To: <1136754802.9839.40.camel@camille.espersunited.com>

On 1/8/06, Michael Sullivan <michael@espersunited.com> wrote:
> On Sun, 2006-01-08 at 12:46 -0800, Mark Knecht wrote:
> > On 1/8/06, Michael Sullivan <michael@espersunited.com> wrote:
> > > On Sun, 2006-01-08 at 13:41 -0600, Michael Sullivan wrote:
> > > > On Sun, 2006-01-08 at 13:36 -0600, Michael Sullivan wrote:
> > > > > On Sun, 2006-01-08 at 11:22 -0800, Mark Knecht wrote:
> > > > > > On 1/8/06, Michael Sullivan <michael@espersunited.com> wrote:
> > > > > >
> > > > > > > I'm not going to mark my mythtv problem SOLVED until I'm sure that
> > > > > > > mythbackend is running stably.
> > > > > >
> > > > > > Nor should you...
> > > > > >
> > > > > > > It seems to be working for now.  The
> > > > > > > problem is that I can't change channels in mythfrontend.  I'm watching
> > > > > > > live TV and I'm hitting the Up arrow key (as specified on mythtv's web
> > > > > > > site, but the channel is not changing.  What's worse is that it seems
> > > > > > > all that's on the one channel I get is infomercials!  How can I fix
> > > > > > > this???  I ran mythsetup and and went to the Channel Editor.  There were
> > > > > > > no channels defined.  I wanted the click the Scan For Channels button,
> > > > > > > but I couldn't figure out how to get to it.  Also, (I think it was in
> > > > > > > mythfrontend) I set the GUI to appear in a window instead of full
> > > > > > > screen.  It turned out to be not what I wanted and now I can't find the
> > > > > > > option to get the full screen mode back.  Help!
> > > > > >
> > > > > > After running mythsetup you then run mythfilldatabase. You should see
> > > > > > it logging into Zap2It and getting the channel data for the next 2
> > > > > > weeks. Is this working for you?
> > > > > >
> > > > > > When I hit the up arrow I do get a new channel. I can also just type
> > > > > > in a channel number and jump that way. I see no mention in the
> > > > > > mythbackend.log file that much happened. THere are a coupl eof lines
> > > > > > but they aren't very interesting and I doubt thay had anything to do
> > > > > > with this at all. More likely when I started the frontend on my PC.
> > > > > >
> > > > > > 2006-01-08 11:16:59.814 adding: lightning as a client (events: 0)
> > > > > > 2006-01-08 11:16:59.911 adding: lightning as a client (events: 1)
> > > > > > 2006-01-08 11:16:59.934 adding: lightning as a client (events: 0)
> > > > > > 2006-01-08 11:16:59.994 adding: lightning as a client (events: 0)
> > > > > > 2006-01-08 11:17:00.018 adding: lightning as a remote ringbuffer
> > > > > >
> > > > > > - Mark
> > > > > >
> > > > >
> > > > > After I ran mythfilldatabase for the umpteenth time I got a channel
> > > > > listing in the Channel Editor.  Next, I want to get mythfrontend working
> > > > > on my wife's computer.  It will need to use the database and mythbackend
> > > > > on my computer remotely.  Is there anything special I need to know to
> > > > > make this work?  I've already set up the IP address in mythsetup on my
> > > > > machine to my PC's network address...
> > > >
> > > > I ssh'd over to my wife's machine and tried running mythfrontend.
> > > > Apparently it can't connect to my mysql server.  I added two lines to
> > > > the end of my /etc/mysql/my.cnf file last night that was supposed to fix
> > > > this:
> > > >
> > > > skip-innodb
> > > > set-variable=thread_stack=256k
> > > >
> > > > but I guess it didn't...
> > >
> > > I changed the bind-address option in my PC's /etc/mysql/my.cnf file from
> > > "127.0.0.1" to "0.0.0.0" and restarted mysql.
> >
> > 0.0.0.0 is unroutable. You need to put in the actual IP address of
> > your backend server. As I said in a previous email that is
> > 192.168.1.55 for our setup here.
> >
> >
> > I then tried to run
> > > mythfrontend from my wife's PC in an ssh environment.  I got a lot of
> > > errors that were copies of this:
> > >
> > > 2006-01-08 14:19:51.309 Unable to connect to database!
> > > 2006-01-08 14:19:51.309 Driver error was [1/1130]:
> > > QMYSQL3: Unable to connect
> > > Database error was:
> > > Host 'catherine.espersunited.com' is not allowed to connect to this
> > > MySQL server
> >
> > this is because you have not run the commands that I showed you where
> > you allow network clients have access to MySQL. This is pointed out in
> > the link I sent you earlier.
> >
> > Note: I do not run the frontend client  through an ssh tunnel. I have
> > the frontend only on all our machines. My fronteld client points at
> > the server's IP address. (192.168.1.55) The mysql database on the
> > server is set up to allow network access. The frontend client talks to
> > it and only the video runs across the network.
> >
> > >
> > > catherine is my wife's computer, located at 192.168.1.4  My computer is
> > > camille, at 192.168.1.3  When I tried to telnet into my mysql server, I
> > > got the same message:
> > >
> > > catherine ~ # telnet camille 3306
> > > Trying 192.168.1.3...
> > > Connected to camille.
> > > Escape character is '^]'.
> > > S\x04Host 'catherine.espersunited.com' is not allowed to connect to this
> > > MySQL serverConnection closed by foreign host.
> > >
> > > How do I fix this?  I had a similar problem a long time ago and as far
> > > as I can tell it was fixed by changing the mysql server's bind-address
> > > to 0.0.0.0.  That didn't work this time.  BTW, I'm using mysql version
> > > 4.1.14...
> >
> > As I said earlier, follow the instructions on the link I gave you to
> > give network access to the mysql database.
> >
> > - Mark
> >
>
> What instructions?  Are you referring to the GRANT line?  I did that
> yesterday.  As for the mythbackend server IP, I set that two or three
> days ago.  It's in the database correctly:
>
> mysql> select * from settings WHERE value = 'BackendServerIP';
> +-----------------+-------------+----------+
> | value           | data        | hostname |
> +-----------------+-------------+----------+
> | BackendServerIP | 192.168.1.3 | camille  |
> +-----------------+-------------+----------+
> 1 row in set (0.00 sec)
>
> What else do I need to do?

Again, I'm not that good on this stuff but it's this basic command:

The specific grant command is this one, or something like it:

% mysql -u root -p
mysql> GRANT ALL PRIVILEGES ON mythconverg.* TO 'mythtv'@'remotehost'
IDENTIFIED BY 'password'

Before you do that make sure you have camille's address in /etc/mysql/my.cnf:

# keep secure by default!
bind-address    = 192.168.1.3
port            = 3306
# this can make it even more secure:

Make sure you have 192.168.1.3 in the mythsetup stuff for the server.

At this point you should try logging into the mysql server from a
terminal on both the server and your wife's machine. If you cannot log
in then neither can Myth. From my terminal on a frontend only PC:
(default password was mythtv on my system)

dragonfly ~ # mysql -u mythtv -h 192.168.1.55 -p mythconverg
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 123 to server version: 4.0.25

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> exit
Bye
dragonfly ~ #

Hope this helps,
Mark

-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2006-01-08 21:58 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-29 17:53 [gentoo-user] OT - Need MythTV setup help (resend) Michael Sullivan
2005-12-30  1:06 ` [gentoo-user] " Michael Sullivan
2005-12-30 22:08   ` Michael Sullivan
2005-12-31  3:30     ` Bob Sanders
2005-12-31  6:40       ` Michael Sullivan
2005-12-31 17:18         ` Bob Sanders
2006-01-01 22:30           ` Michael Sullivan
2006-01-01 22:47             ` Michael Sullivan
2006-01-01 22:57               ` Michael Sullivan
2006-01-02  1:47                 ` Bob Sanders
2006-01-02  3:20                   ` Bob Sanders
2006-01-02  3:27                     ` Michael Sullivan
2006-01-02  5:05                       ` Michael Sullivan
2006-01-02  5:15                     ` Michael Sullivan
2006-01-02  5:21                       ` Michael Sullivan
2006-01-08  0:42                     ` Michael Sullivan
2006-01-08  3:50                       ` Bob Sanders
2006-01-08  4:35                         ` Michael Sullivan
2006-01-08  5:17                         ` Michael Sullivan
2006-01-08 16:50                           ` Bob Sanders
2006-01-08 17:32                             ` Mark Knecht
2006-01-08 17:53                               ` Michael Sullivan
2006-01-08 18:18                                 ` Mark Knecht
2006-01-08 18:31                                   ` Michael Sullivan
2006-01-08 18:37                                   ` Michael Sullivan
2006-01-08 18:58                                     ` Mark Knecht
2006-01-08 19:10                                   ` OT - Need help with mythfronted GUI (WAS[Re: [gentoo-user] Re: OT - Need MythTV setup help (resend)]) Michael Sullivan
2006-01-08 19:22                                     ` Mark Knecht
2006-01-08 19:36                                       ` Michael Sullivan
2006-01-08 19:41                                         ` Michael Sullivan
2006-01-08 20:28                                           ` [gentoo-user] OT - mysql (WAS: [Re: OT - Need help with mythfronted GUI]) Michael Sullivan
2006-01-08 20:46                                             ` Mark Knecht
2006-01-08 21:13                                               ` Michael Sullivan
2006-01-08 21:54                                                 ` Mark Knecht [this message]
2006-01-08 21:58                                                   ` Mark Knecht
2006-01-08 22:21                                                     ` Michael Sullivan
2006-01-08 22:20                                                   ` Michael Sullivan
2006-01-08 22:40                                                     ` Mark Knecht
2006-01-08 23:20                                                       ` [gentoo-user] OT - mysql (WAS: [Re: OT - Need help with mythfronted GUI]) [SOLVED] Michael Sullivan
2006-01-08 23:58                                                         ` Mark Knecht
2006-01-08 20:19                                         ` OT - Need help with mythfronted GUI (WAS[Re: [gentoo-user] Re: OT - Need MythTV setup help (resend)]) Mark Knecht
2006-01-08 20:25                                           ` Mark Knecht
2006-01-08 17:57                             ` [gentoo-user] Re: OT - Need MythTV setup help (resend) Michael Sullivan
2006-01-08 21:04                             ` Bob Sanders
2006-01-08 21:18                               ` Michael Sullivan
2006-01-08 22:49                                 ` John Myers
2006-01-09  0:31                                   ` Mark Knecht
2006-01-02 17:21                   ` GARTInit: WAS (Re: [gentoo-user] Re: OT - Need MythTV setup help (resend)) Michael Sullivan
2006-01-02 20:17                     ` Rumen Yotov
2006-01-02 18:30                       ` Michael Sullivan
2006-01-02 21:01                         ` Rumen Yotov
2006-01-02 19:12                           ` Ted Ozolins
2006-01-02 19:22                             ` Michael Sullivan
2006-01-02 21:55                               ` Ted Ozolins
2006-01-02 19:21                           ` Michael Sullivan
2006-01-02 21:55                             ` Rumen Yotov
2006-01-02 21:29                               ` Michael Sullivan
2006-01-03  6:53                                 ` Rumen Yotov
2006-01-03 16:05                                   ` Michael Sullivan
2006-01-03 18:23                                     ` Rumen Yotov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5bdc1c8b0601081354r431b8cc2p9bab4463e0e4cd0e@mail.gmail.com \
    --to=markknecht@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox