sql: user lacks privilege or object not found

Need help? Post your questions here.

Moderator: moderators

sql: user lacks privilege or object not found

Postby iw2lsi » Tue Oct 17, 2017 8:11 pm

Hi...

I would like to alter my subsonic db (basically in order to import some album's comments) using an sql client instead of the web interface and/or web access to the db (http://localhost:4040/db.view)...

So far I can access the database via "hsqldb-sqltool madsonic", but when I try to run a query it fails...

ie:
>sql: select * from artist;
>user lacks privilege or object not found: ARTIST

my sqltool.rc looks like:

urlid subsonic
url jdbc:hsqldb:file:/var/subsonic/db
username sa
password

any ideas ?

Best Regards,

Giampaolo
iw2lsi
 
Posts: 7
Joined: Tue Jun 12, 2012 12:03 pm

Re: sql: user lacks privilege or object not found

Postby Jägs » Tue Oct 17, 2017 11:32 pm

This may not be the route you want to go, but you could simply build a program to alter the database through the web interface. I developed app in Perl to export playlists for the purpose of backing them up, but there's no reason you couldn't alter the SQL statements to do updates as well:

http://forum.subsonic.org/forum/viewtopic.php?f=5&t=17436
Jägs
 
Posts: 109
Joined: Wed Apr 06, 2011 9:52 pm

Re: sql: user lacks privilege or object not found

Postby iw2lsi » Wed Oct 18, 2017 6:30 pm

Hi Jags,

thanks a lot for your suggestion... I'm still struggling with the error I'm having trying to follow my original approach, but yeah... your solution seems very good!

Best Regards,

Giampaolo
iw2lsi
 
Posts: 7
Joined: Tue Jun 12, 2012 12:03 pm

Re: sql: user lacks privilege or object not found

Postby iw2lsi » Thu Oct 19, 2017 4:53 pm

Hi...

I found the problem... it was just the url...

urlid subsonic
url jdbc:hsqldb:file:/var/subsonic/db/subsonic
username SA
password

Best Regards,

Giampaolo
iw2lsi
 
Posts: 7
Joined: Tue Jun 12, 2012 12:03 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 18 guests