PDA

View Full Version : Change Forum URL in database


Nano_
03-03-2015, 02:45 AM
Hi, a time ago, some people created a full backup of our old server. Today, i got that backup and i restored in our new server.

Forum is working, but the problem is: In database we have old domain and we don't have access to that domain anymore. Site is accessible by new domain, but css and js files don't load ('cause point to old domain) and i can't login because that process point to old domain too.

How i can change that entries directly in database?

Edit
Infos: vB 4.1.12.
Tools.php is working, i disabled the forum there. Already resetted cookie domian.


Sorry for bad english, btw.

kh99
03-03-2015, 02:58 AM
You can edit the bburl in the database, but it's in the datastore table where title='options', and it's stored as a serialized array, so it's a little tricky. A less tricky way would be to edit the settings table where varname = 'bburl', then upload tools.php to your admincp directory, and use "[Options Cache]" to rebuild the datastore from the settings (you also have to upload the install directory if you've previously removed it).

Nano_
03-03-2015, 11:26 AM
An

UPDATE `my_db`.`setting` SET `value` = 'http://www.newdomain.com/forum' WHERE `setting`.`varname` = 'bburl';


Works, thanks! :)