Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-23-2006, 09:55 PM   #1
Boobs
Confirmed User
 
Join Date: Aug 2006
Posts: 7,875
MySQL Help needed

ok i have mysql backup from one of my blogs

i want to use this mysql backup on another domain so it's pretty much identical to the site that was backedup

one problem, when i import the mysql tables, the links on the categories, posts, etc. links to the original domain from which it came.

is there a way i can edit the domain so it'll link to the new domain that I imported the mysql tables to?

any help appreciated
Boobs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2006, 09:56 PM   #2
teksonline
So Fucking Banned
 
Join Date: Jan 2005
Location: At My Desk
Posts: 2,904
what version MySQL?
teksonline is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2006, 10:00 PM   #3
Boobs
Confirmed User
 
Join Date: Aug 2006
Posts: 7,875
MySQL - 5.0.18
Boobs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2006, 10:08 PM   #4
teksonline
So Fucking Banned
 
Join Date: Jan 2005
Location: At My Desk
Posts: 2,904
well doh what am i thinking, if you have a unix server do this

try this, (untested)
perl -pi.bak -e 's#http://www.domain.com#http://newdomain.com#g' file.sql

your sql dump file is just a text file, so if no unix, use any search,replace text editor

Last edited by teksonline; 10-23-2006 at 10:10 PM..
teksonline is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2006, 10:11 PM   #5
Boobs
Confirmed User
 
Join Date: Aug 2006
Posts: 7,875
im very illiterate at this, what am i suppose to do with that code
Boobs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2006, 10:12 PM   #6
teksonline
So Fucking Banned
 
Join Date: Jan 2005
Location: At My Desk
Posts: 2,904
now i know why I am hungry :/
teksonline is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2006, 10:16 PM   #7
Boobs
Confirmed User
 
Join Date: Aug 2006
Posts: 7,875
aha gotcha
Boobs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2006, 10:17 PM   #8
Boobs
Confirmed User
 
Join Date: Aug 2006
Posts: 7,875
duh i can just search and replace
Boobs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.