PDA

View Full Version : Importing templates ?


Sharg
Wed 8th Nov '00, 12:19pm
Hi, is there a way to import templates only in another database ?

I plan to work on template with a dummy database, and then when they are ready, import the real database.
Problem is that templates are in the database I think, si by replacing the database I will also crush the templates ?!

Thanks,
Benj

Mike Sullivan
Wed 8th Nov '00, 12:49pm
Via telnet you can use this to dump your template table only:
mysqldump -uUSER -p --opt db_name template > /path/to/dump.sql

Then just import it:
mysql -uUSER -p new_db < path/to/dump.sql

Sharg
Wed 8th Nov '00, 7:00pm
Thanks Ed.
About global database move... is it a problem if the new server I'm moving the database doesn't have the same domain (thus all the path changes ) ?

Benj

Mike Sullivan
Wed 8th Nov '00, 11:22pm
I don't quite understand your question, but I'm taking a stab :)

If you're referring to the URLs you set in the options section, those will be imported also - you can just reset those.

If you mean hardcoded URLs in the templates, no, you'll have to change those.

Sharg
Thu 9th Nov '00, 12:26pm
Thanks Ed.
I asked if a same database could work on another server with another domain.

I guess yes ?

Benj

Mike Sullivan
Thu 9th Nov '00, 12:36pm
Yup - no problem with that :)