GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   MySQL Help needed (https://gfy.com/showthread.php?t=669621)

Boobs 10-23-2006 09:55 PM

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

teksonline 10-23-2006 09:56 PM

what version MySQL?

Boobs 10-23-2006 10:00 PM

MySQL - 5.0.18

teksonline 10-23-2006 10:08 PM

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

Boobs 10-23-2006 10:11 PM

im very illiterate at this, what am i suppose to do with that code :(

teksonline 10-23-2006 10:12 PM

now i know why I am hungry :/

Boobs 10-23-2006 10:16 PM

aha gotcha

Boobs 10-23-2006 10:17 PM

duh i can just search and replace :thumbsup


All times are GMT -7. The time now is 08:55 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123