icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old December 1st, 2004, 9:24 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Nov 2004
7 posts
Gave thanks: 0
Thanked 0 times
Question New Noob Question - Importing Content

Okay, here's the deal.

I had a website on a friend's server (as a subdomain of his). I used Mambo there. I exported the SQL database to save the data. (btw, the old website still exists while I go through moving it here -- so if I need to do something else to get the data, I can)

I bought space here, registered a domain, installed Mambo. Now I want to move all my content over here.

Thing is ... when I look at the .txt file that the export created, I see lots of instances of my friend's domain (url, db names, etc) in there. So I assume I can't just click 'import' in mySQL and expect it all to work correctly.

Can I just go in and manually change the instances of his domain to match what I have here at surpass? Will it work if I import that?

Or is there some other (easier? better?) way of doing this that I just don't know about?
weya is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 1st, 2004, 11:55 AM   #2 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
you can use a good text editor (not notepad, I'm afraid - it will break the "line breaks" needed for the sql import) to replace all those, or edit them manually (with a good text editor). Then the import will work.

I don't think that there are more than a half dozen or so....
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 2nd, 2004, 10:29 AM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Nov 2004
7 posts
Gave thanks: 0
Thanked 0 times
So, what's a 'good text editor'?
weya is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 2nd, 2004, 10:43 AM   #4 (permalink)
sam
Surpass Fan
Super #1
 
sam's Avatar
 
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
depends on OS. which do you run?
sam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 2nd, 2004, 10:44 AM   #5 (permalink)
Forum Moderator
Super #1
 
Ehaanaes's Avatar
 
Joined in Aug 2003
Lives in Norway
Hosted on Minerva
1,215 posts
Gave thanks: 0
Thanked 0 times
3 easy steps to finish this off.

Step 1. Install Linux if you haven't already.
Step 2. Install VI.
Step 3. Use VI to fix it.

(Replace VI with nano or pico if needed.)
__________________
Owner of Minerva and Server :: Beatiful P4's Surpass
http://www.case-spider.com
Winner of the Surpassies 2004 - Most Spirit. :bravo:
Google = Friend!
Ehaanaes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 2nd, 2004, 11:15 AM   #6 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
Quote:
Originally Posted by Ehaanaes
3 easy steps to finish this off.

Step 1. Install Linux if you haven't already.
Step 2. Install VI.
Step 3. Use VI to fix it.

(Replace VI with nano or pico if needed.)
LOL. The guy says he's a newbie... and you want him to kill himself with VI?

John
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 2nd, 2004, 12:28 PM   #7 (permalink)
surmunity freak
Comfy Contributor
 
Joined in Sep 2004
Lives in Baton Rouge, LA, North Amewica, USA, Earth
Hosted on D68; Serva; Pass15
143 posts
Gave thanks: 0
Thanked 0 times
In order to fix the problem, the easiest way would probably to create another database on your site (not the one used by mambo) and import it there. Then you could just use PHPMyAdmin to fix the incorrect rows (you will want to go over every row, just to make sure you found them all). Then just copy the database over (or use mambo to point to the new database instead; I dunno if that's possible, I haven't used mambo previously).
__________________
Server: Pass15
twwright.net
NoE

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050405 Firefox/1.0 (Ubuntu package 1.0.2)

I run ubuntu hoary!
spartas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 13th, 2005, 5:56 AM   #8 (permalink)
Registered User
Seasoned Poster
 
ladybeauty16's Avatar
 
Joined in Apr 2005
30 posts
Gave thanks: 0
Thanked 2 times
Quote:
Originally Posted by weya
So, what's a 'good text editor'?
A HTML editor should do I think. Someone correct me if I'm wrong.

I use Cutehtml and I've had to do something similar. I just ran a search for say sub.domain.com and replace what it finds with newdomain.com.
__________________


Belle Femme Network
Cazaroonie.com
ladybeauty16 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 13th, 2005, 6:00 AM   #9 (permalink)
Registered User
Seasoned Poster
 
ladybeauty16's Avatar
 
Joined in Apr 2005
30 posts
Gave thanks: 0
Thanked 2 times
Those dates just keep hiding from me...
__________________


Belle Femme Network
Cazaroonie.com
ladybeauty16 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

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