View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 30 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Thu Dec 08, 2005 2:27 pm 
Offline
Joined: Sun Dec 04, 2005 9:46 am
Posts: 10
Location: Stone Mountain, GA. USA.
Thanks! I'll give that a try when I get back to my boxes.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 08, 2005 11:47 pm 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Quote:
you might want to give this a try:

> DELETE FROM settings WHERE value = 'DBSchemaVer';
> INSERT INTO settings
> ( value, data, hostname )
> VALUES
> ( 'DBSchemaVer', '1083', null );
SWEET !!

That worked without having to drop the mythconverg DB.

Code:

root@mythtv~# mysql

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 4.0.22-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use mythconverg
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed

mysql> DELETE FROM settings WHERE value = 'DBSchemaVer';
Query OK, 1 row affected (0.00 sec)

mysql> INSERT INTO settings ( value, data, hostname )VALUES
    -> ( 'DBSchemaVer', '1083', null );
Query OK, 1 row affected (0.00 sec)

mysql> \q


To save a step I used and tested below mysqul update command and worked as well.

Code:
root@mythtv~# mysql

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 4.0.22-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use mythconverg
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed

mysql> UPDATE settings SET settings.hostname=null WHERE settings.value='DBSchemaVer';
Query OK, 1 row affected (0.01 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> \q


After making that DB change my R5A26 Frontend connects to my R5A26 Backend fine.

Someone want to update the R5A26 WIKI info? It may be safer to make 1 DB change than to drop the entire DB.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 09, 2005 5:49 pm 
Offline
Joined: Thu Dec 01, 2005 4:14 pm
Posts: 78
Location: Ann Arbor, MI
spalVl wrote:

To save a step I used and tested below mysqul update command and worked as well.

Code:
root@mythtv~# mysql

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 4.0.22-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use mythconverg
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed

mysql> UPDATE settings SET settings.hostname=null WHERE settings.value='DBSchemaVer';
Query OK, 1 row affected (0.01 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> \q


After making that DB change my R5A26 Frontend connects to my R5A26 Backend fine.

To be safe, I would advise against this particular SQL command, as you probably will have multiple rows in the settings table for the DBSchemaVer value at this point. It appears that mythfrontend can handle it, but it does not look like this is what is intended.

Glad, though, that it worked for you!


Top
 Profile  
 
 Post subject: fix
PostPosted: Sat Dec 10, 2005 4:22 am 
Offline
Joined: Wed Jan 26, 2005 3:13 pm
Posts: 117
So does the above work. and is it safe?

snake


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 10, 2005 8:28 am 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Quote:
would advise against this particular SQL command, as you probably will have multiple rows in the settings table for the DBSchemaVer value at this point.


But couldn't multiple rows also be deleted using below DELETE MYSQL command as well?

Code:
DELETE FROM settings WHERE value = 'DBSchemaVer';


:oops: I am not a SQL expert I just researched the UPDATE command in trying to fix the problem prior to reading your post.

Quote:
So does the above work. and is it safe?

Safe ? IMO Using the above MYSQL commands to change the MySQL DB, is safer than dumping the DB, loosing all data and restoring.

Thanks again for everyone's help.

Work ?. I posted to someone else how to fix and they noted worked for them too. http://mysettopbox.tv/phpBB2/viewtopic.php?t=7287


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 10, 2005 10:20 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
The update command should be safe, and will not produce multiple occurances since the whole point of using update versus insert is to update in place.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 15, 2005 9:24 pm 
Offline
Joined: Sun Dec 04, 2005 9:46 am
Posts: 10
Location: Stone Mountain, GA. USA.
So DBSchemaVer had no effect for me, but I found another setting that did.
I noticed that my frontend was trying to connect to localhost even though I had configured it to connect to the address of my master backend server.

I then noticed that MasterServerIP in settings had a hostname set. Both changing the hostname to NULL and adding a row with the hostname of my frontend machine both worked.

Here's a crazy new develoment. The frontend on my backend server as well as a PC frontend running RA26 both show a complete set of recordings. The frontend on the Macintosh only shows one of my recordings. The Mac will play that one recording just fine and will also play live TV. *shrug* I can live with that but I wonder what the cause is?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 15, 2005 11:29 pm 
Offline
Joined: Thu Dec 01, 2005 4:14 pm
Posts: 78
Location: Ann Arbor, MI
spalVl wrote:

But couldn't multiple rows also be deleted using below DELETE MYSQL command as well?

Code:
DELETE FROM settings WHERE value = 'DBSchemaVer';


:oops: I am not a SQL expert I just researched the UPDATE command in trying to fix the problem prior to reading your post.


That is the intention...it appears that there is only supposed to be *one* DBSchemaVer row in the table. The DELETE command removes ALL rows (since, if you are getting the aforementioned error, you probably have multiple rows, which appears to be non-standard) so that the subsequent INSERT command leaves you with exactly one row.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 16, 2005 10:17 am 
Offline
Joined: Sun Jan 16, 2005 8:23 pm
Posts: 94
The solution to both of these database issues are documented at the end of this page on the wiki:

http://knoppmythwiki.org/index.php?page=FrontendOnlyInstall

The fix for MasterServerIP is listed in the R5A22 notes, and the fix for the DBSchemaVer is listed in the notes for R5A26.

One question here. I just checked the "settings" table from webmin and notice that a fresh install of R5A26 sets the hostname to a non-NULL value for every value in that table. Should these all be set to NULL or are MasterServerIP and DBSchemaVer enough?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 16, 2005 9:27 pm 
Offline
Joined: Thu Dec 01, 2005 4:14 pm
Posts: 78
Location: Ann Arbor, MI
Red5 wrote:
One question here. I just checked the "settings" table from webmin and notice that a fresh install of R5A26 sets the hostname to a non-NULL value for every value in that table. Should these all be set to NULL or are MasterServerIP and DBSchemaVer enough?


The settings table contains the settings that apply (a) to all devices and (b) to each device individually. All (or almost all) of the settings that you set in Utilities/Setup through the frontend are stored in this table (along with some other settings for some add-ons). This is why you are able to set, say, one frontend to use xine for DVD playback and another to use mplayer.

Those settings that are intended to be specific to a frontend will have the hostname value filled-in. Those settings that are intended to apply to all devices (e.g. the DBSchemaVer) will have a NULL value for the hostname; which, also, is why there should ONLY be ONE row for those settings.

If anyone who actually does development on the myth database side can expand or refute my statements, please do so. I am basing these conclusions strictly through my own digging. :)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 17, 2005 9:33 pm 
Offline
Joined: Tue May 17, 2005 6:48 pm
Posts: 9
I was having many of the same issues while using R5A26 on my backend and FC4 on my frontend. Part of this thread helped me to get closer. But I was still having problems with the frontend saying cannot connect to master server. But everything in mythtv-setup looked good and I had followed all the instructions to setup sql permissions, allow networking, setting up my.cnf and sql.txt, etc. And I could see traffic in my sql log so I knew the frontend was accessing the db ok.

What it ended up being was that the settings table only had one row for my backend:

mysql> select * from settings where value="MasterServerIP";
+----------------+-------------+----------+
| value | data | hostname |
+----------------+-------------+----------+
| MasterServerIP | 192.168.1.4 | backend |
+----------------+-------------+----------+
1 row in set (0.00 sec)



So I added it also for the frontend and all of a sudden everything worked correctly! I suspect I could have made hostname null and it would've worked too.
mysql> insert into settings (value,data,hostname) VALUES 'MasterServerIP', '192.168.1.4', 'frontend');


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 17, 2005 11:21 pm 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location: Sydney, Australia
frego, if you are willing to use a more recent version of mythfrontend, you can examine the SQL requests, which might help you debug the problem. e.g.
Code:
mythfrontend -v database
2005-12-18 16:20:38.839 Using runtime prefix = /Volumes/Users/nigel/Desktop/Programming/MythTV/mythtv/programs/mythfrontend/mythfrontend.app/Contents
2005-12-18 16:20:38.873 New DB connection, total: 1
2005-12-18 16:20:38.879 Total desktop dim: 1024x768, with 1 screen[s].
2005-12-18 16:20:38.883 MSqlQuery: SELECT data FROM settings WHERE value  = 'XineramaScreen' AND hostname = 'Macaque.local' ;

_________________
| Nigel Pearson, nigel.pearson.au@gmail.com
| "Things you own end up owning you" - Tyler, Fight Club


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 12:52 pm 
Offline
Joined: Wed Jan 26, 2005 3:13 pm
Posts: 117
The only thing that works for me 100% is dumping the database. BUT< I did this on a fresh install of R5A26. Not and update or on a box that I had been running. THAT WOULD BE A PAIN!

But is you are starting FRESH as I was, dropping the database works first time everytime. As far as recorded programs, Really, after thinking about it, you watch it, does anybody keep it? if so WHY? Put it on DVD or VCD


Don't reply to that question! lol..


Top
 Profile  
 
 Post subject: Still not working
PostPosted: Wed Dec 28, 2005 11:55 pm 
Offline
Joined: Sat Dec 10, 2005 1:24 pm
Posts: 6
Location: Minnesota
So far, I've followed all of these instructions (except dropping the database) and it's still not working for me.

Of course I'm assuming this gets fixed in the next release of KnoppMyth. anyone know when that's due out?

_________________
<blockquote><i>"I Said I Was Smart, I Never Said I Was Mature..."</i><br>
--Ivan Kowalenko</blockquote>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 29, 2005 1:19 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
When it's ready. There really isn't a better answer. It shouldn't be more than a couple months... ;-)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ] 
Go to page Previous  1, 2



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu