Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-13 01:22:11

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Transport a textpattern and MAMP installation from one mac to another

Hello.

I will be purchasing a new computer soon. I want to take my current textpattern installation using MAMP for php/mysql to the new mac.

Can I just take the MAMP folder within the applications folder and drag it to the same location on the new mac?

Or will I have to somehow back up my database, install MAMP and textpattern on the new, then reconnect the database?


Art Rogue – Fine Art Photography

Offline

#2 2005-10-13 01:39:46

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Transport a textpattern and MAMP installation from one mac to another

I believe you’ll need to actually install MAMP on your new computer for it to work correctly.

Textpattern won’t care, just:

  1. Export your database from the old computer.
  2. Import it into the new.
  3. Move/copy your Textpattern files to the new computer.
  4. Make the necessary changes to config.php.
  5. Load up the admin and update your preferences.

phpMyAdmin can export and import for you, and it comes with MAMPP. :) Make sure you export both the “structure” and “data”. If you’re unfamiliar with that program, grab Rob’s plugin to do it instead.

And obviously, don’t get rid of Textpattern on your old computer until you’re sure it works properly on the new. :)

Offline

#3 2005-11-12 00:40:54

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Transport a textpattern and MAMP installation from one mac to another

Thanks Mary.

Do I install a fresh version of textpattern, or just move my old textpattern directory to my new machine? I know I will have to move or copy my image folder to the new mac.

Edit:

No worries. I found instructions at the text book wiki. I’ll start from there.

Last edited by mattmikulla (2005-11-12 01:55:32)


Art Rogue – Fine Art Photography

Offline

#4 2005-11-12 03:19:55

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Transport a textpattern and MAMP installation from one mac to another

Ok. The directions at the wiki are a little insane and I don’t think complete.

What is the best way to get the back up database into the new machine? I am going to assume using phpMyAdmin, but I don’t see an import function.


Art Rogue – Fine Art Photography

Offline

#5 2005-11-12 03:50:32

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Transport a textpattern and MAMP installation from one mac to another

Make sure you have selected the database you are importing to then click on the “SQL” tab. You should see a small box near the bottom that says “Location of the text file:” with a browse button next to it. Find your file and click the button. Keep all fingers, toes and legs crossed.

Last edited by thebombsite (2005-11-12 03:50:59)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2005-11-13 19:26:37

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Transport a textpattern and MAMP installation from one mac to another

Well, I tried to use Rob’s db_manager plugin. I can create a db using the gzipped file option, not the .sql file option. When I try the .sql backup I receive an error no: 127.

So I on my new machine I tried to add the gzipped version that db_manager created and phpMyAdmin said the file could not be read.

I tried to use the db that I created with phpMyAdmin using the directions at Text Book , but I recieved a 1064 mysql error:

MySQL said:

  1. - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ID` int(11) NOT NULL auto_increment, `Posted` datetime NOT NULL default ’0000-’ at line 2

Any ideas?


Art Rogue – Fine Art Photography

Offline

#7 2005-11-16 04:36:31

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Transport a textpattern and MAMP installation from one mac to another

Well, I ended up transferring the folder that held my database to my new computer in the mysql data directory. Phpmyadmin recognized it, so now I have to get the textpattern part going.

Mary said: “3. Move/copy your Textpattern files to the new computer.”

What files specifically do I transfer? All of them including my textpattern folder and index.php?
Or do I just do a fresh install and move my old images and files folder into the new directory?


Art Rogue – Fine Art Photography

Offline

#8 2005-11-16 04:45:44

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Transport a textpattern and MAMP installation from one mac to another

You can do a fresh install and copy the images and files folders across but you should install the same version. Remember that you musn’t run setup. You already have the database. If the same version isn’t available then copy the whole install across including your index and htaccess. Your config file will need updating to match your new location.

Last edited by thebombsite (2005-11-16 04:47:41)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#9 2005-11-17 00:01:27

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Transport a textpattern and MAMP installation from one mac to another

Problem solved. For the record:

1. Installed a fresh installation of mamp. Set up virtual hosting to taste. I also made sure that I created a user in phpMyAdmin that had the same name, password, and privelages as my old MAMP phpMyAdmin. The database that I transported had that info, so It connected properly with the new machine.

2. Copied the folder from my old computer that held my database. It was Applications/MAMP/bin/mysql4/var/ . I moved it to the proper directory on my new machine, which was Applications/MAMP/db/ . I installed a newer version of MAMP on my new mac, so the directories were different.

3. Then I basically took my whole textpattern install, image folder, css folder, etc, from my old machine and placed it in the same virtual host directory in the new mac. The config.php and .htaccess files were already good to go.

4. Typed in the the url of my index file and blam. Working good so far.


Art Rogue – Fine Art Photography

Offline

#10 2005-11-17 01:25:22

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Transport a textpattern and MAMP installation from one mac to another

Well done. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB