Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Update internal links in a Database?
Old 04-03-2007, 11:31 AM Update internal links in a Database?
Junior Talker

Posts: 2
Trades: 0
Hi there,

We have a semi-large (200MB) mySQL database from an old
phpBB2 Cinema4d forum. Due to circumstances the old forum had
to move (2006) to a new host and a new domain. We also took that
moment to buy/ install a more current IPB forum.

We are now trying to get the old forum up again, as a static (read only)
forum.
But, most links in the database link to the old domain. We tried to do a
search and replace in Dreamweaver, but it either crashed or got not very
far in the DB. And replacing the links by hand.... So eventhough we have
the entire old site on a backup, internal the images link to the folder on the
old domain.

Has anyone here ever dealt with something simular or knows how to
replace those links in the DB?

Thank you very much,

--
Rick
Rick(4)F. is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-03-2007, 12:28 PM Re: Update internal links in a Database?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Code:
UPDATE tablename SET column = REPLACE(column,'old_hostname','new_hostname') WHERE column LIKE '%old_hostname%';

Looks like it should work
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-04-2007, 02:20 AM Re: Update internal links in a Database?
Junior Talker

Posts: 2
Trades: 0
Hi Chris!

Thank you for your speedy reply!
I forgot to mention that I'm a total n00b when it comes to phpMyAdmin.

Where would I fill in your given code?

Thanks.

--
Rick
Rick(4)F. is offline
Reply With Quote
View Public Profile
 
Old 04-04-2007, 12:59 PM Re: Update internal links in a Database?
Experienced Talker

Posts: 46
Trades: 0
Go into the database in phpMyAdmin, and hit the SQL link in the top nav bar.
bld44 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Update internal links in a Database?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29645 seconds with 12 queries