Posts: 35
Joined: May 2016
Reputation:
0
2017-12-18, 18:39
(This post was last modified: 2017-12-18, 18:40 by sweetthdevil.)
Hello all,
My MySql database has changed IP address ( cannot changed it back to the old address due to new hardware restrictions)
Anyway, will change the address in the configuration files but do not want to loose the view status and the rest.
Is there a way to achieve that?
Thanks,
Posts: 14,208
Joined: Nov 2009
Reputation:
710
Klojum
Lost connection
Posts: 14,208
Just change the ip address / hostname in the advancedsettings.xml
Posts: 66
Joined: May 2015
Reputation:
1
I think the OP is asking about the database path entries themselves (e.g. nfs://192.169.0.xxx/movies/terriblemovie.mkv in MyVideos107 or whatever). I have no idea myself, but just clarifying the question.
Posts: 35
Joined: May 2016
Reputation:
0
Changing the sources.xml passwords.xml mediasources.xml and advancedsettings.xml will give acces to the database.
But every files that were there prior to the IP address move will be located at the old address.
Posts: 140
Joined: May 2014
Reputation:
6
2019-12-12, 01:52
(This post was last modified: 2019-12-12, 02:09 by Sionzris.)
Because I just recently did exactly that:
The guide mentioned above still works quite well but you just need to watch out a little and use method 1.
Copy and pasting the examples will not work. Things like "movieview" changed to "movie_view" etc. so take a good look at your search results. Basically all you do is search and replace. Make a backup beforehand and if bad comes to worse, you can always revert what you did. HeidiSQL is quite comfortable to use here.
P.s.: Sorry for reviving this, but it's still like the number 1 search on google.
Edit: To make it a little easier, here is some pseudo explanation:
update episode set c18 = replace(c18,'192.168.111.4','192.168.105.2');
means:
update -(Change)
episode -(the tab in your search result)
set c18 -(which column has the data you want to change?)
=
replace -(replace the current value with the new value)
(c18, -(repeat the column here with the data you want to change)
'192.168.111.4', -(the current part that needs to be changed)
'192.168.105.2'); -(the part you want to change it to)
P.s.: Don't be scared of the *complicated databaese*. It's basically an excel sheet and the export is nothing more than one big text file. It might actually be easier to just export to sql, open with an editor and search an replace. When done just import the edited file back in. (Haven't tested this but I don't see a reason why it shouldn't work)