Replacing text in a table
Permalink: http://www.ramonfincken.com/permalink/topic21.html
Rating : 3 / 5Rate this article 1 2 3 4 5
Tags:
::
View next topic
Author
Message
ramon fincken Site's programmerGet a free globally recognized avatar It's free! Joined: 03 Aug 2007 Posts: 253 Location: A'dam/Diemen, The Netherlands
Posted: Mon Nov 19, 2007 9:02 pm Post subject: Replacing text in a table
Just got a server or domain transfer and need to update ALL links on that old IP or domain at once ?
Here's a solution , I take the example of a phpbb forum.
SQL statement to run:
Code: update phpbb_posts_text set post_text = replace(post_text, 'old_domain.com', 'new_domain.net')
Make sure the phpbb_ prefix is the prefix you use on your boards tables
I've tested this sql statement on a mysql mysiam database and worked perfectly !
Back to top
Google adsense Advertisement
Posted: Mon Nov 19, 2007 9:02 pm Post subject: Replacing text in a table
Advertisement
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum