FAQ  •  Register  •  Login

how can I find out the number of items in database?

<<

willybauss

Serviio newbie

Posts: 6

Joined: Sat Nov 07, 2015 8:28 pm

Post Sat Nov 07, 2015 8:53 pm

how can I find out the number of items in database?

The DLNA server of my WD MyBookLiveDuo (MBLD) tells me
- Music: 166977
- Images: 30998
- Videos: 167
In fact I have ~12000 images, so I assume the difference to be music album covers etc.

ServiDroid informed me about having ~243000 items added to the database. This number doesn't fit the sum of what MBLD reported. So I'd like to find out what I really have. How can I do that in Serviio, ideally folder by folder.
<<

willybauss

Serviio newbie

Posts: 6

Joined: Sat Nov 07, 2015 8:28 pm

Post Sat Nov 07, 2015 8:55 pm

Re: how can I find out the number of items in database?

I forgot to mention: Serviio runs on Windows currently, planned to be moved to Raspberry Pi (Raspbian) soon.
<<

atc98092

User avatar

DLNA master

Posts: 5436

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Nov 08, 2015 2:34 am

Re: how can I find out the number of items in database?

The only way you can access the database to close Serviio down completely, then open the DB with a SQL client that works with Derby. I've used Squirrel SQL. I've browsed the DB myself, and you can probably export the listing table to use with Excel to simplify your searching.

Just make certain you don't actually modify anything, or Serviio may not start again. :D
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

willybauss

Serviio newbie

Posts: 6

Joined: Sat Nov 07, 2015 8:28 pm

Post Sun Nov 08, 2015 7:28 am

Re: how can I find out the number of items in database?

SQL sounds pretty simple, since its part of my daily job. But what do you mean saying
... works with Derby...
? Normally I use mySQL or even Microsoft Access as UI, which is also capable of SQLof course.

To be on the safe side I'll take a copy of the database for experiments. I assume the ...\Serviio\library\db\seg0 directory is what I need, right?
<<

atc98092

User avatar

DLNA master

Posts: 5436

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Nov 08, 2015 9:27 pm

Re: how can I find out the number of items in database?

I believe you need to direct the client to the root of the library folder, which is C:\Program Files\Serviio\library, but it's been a while and you might need to go one deeper (C:\Program Files\Serviio\library\db). I don't believe Access is compatible with Derby. I also use MySql, but I don't think it has a connection option either. The version of Derby used by Serviio is designed for single access, which is why you can't open it with a client while Serviio is using it.

Using a copy to experiment is a great idea. Besides, you can find everything you want from the copy, so there's no reason to risk the live version.

I think Squirrel (http://squirrel-sql.sourceforge.net/) is your best choice for opening the DB. It's what is recommended by Apache, who develops Derby.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

atc98092

User avatar

DLNA master

Posts: 5436

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Sep 17, 2020 1:20 pm

Re: how can I find out the number of items in database?

Bitgid wrote:So does some ui exist for it? Because had the same trouble?


No, there's no Serviio UI for accessing the database directly. Using a program such as Squirrel is the only method, but if you don't have a good understanding of databases and SQL I strongly recommend staying out of there. One tiny mistake and the database won't work, and you'll have to remove and install Serviio to clean it up.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents

Return to Serviio Support & Help

Who is online

Users browsing this forum: Baidu [Spider] and 343 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.