How do I go from MAMP to champ?
February 12, 2012 9:36 PM Subscribe
How do I transfer my locally-created Wordpress site (using MAMP) to my live Dreamhost site?
I have been working on a Wordpress site locally using MAMP for a while. Now, I want to transfer this to the live site which is hosted at Dreamhost. I am not a web developer or whatever, so go easy on me.
(It's not a big deal if I botch this, as the site has never been published before. I also just put up an htaccess file on the live remote site so nobody can really access this while I am doing this transfer.)
So, I realize that I can push all the files from the local to the remote site via FTP, but I am pretty sure I also need to transfer all the date on the local SQL database, as that won't go over by just FTP'ing my local Wordpress directory, right?
I installed Wordpress on the live Dreamhost site, and it is up and running. However, it looks like Dreamhost used some odd database naming. Also, all the fields in the table on Dreamhost seem odd. For example, on my local setup I have "wp_posts". However, on Dreamhost, they are called something like "wp_asdlfk_posts". I don't really get what that middle jibberish is for (I just typed that jibberish in case the real jibberish is some password or something).
So, do I need to rename the remote database?
And then, do I need to rename all the fields before I import the local stuff? Or do I just need to delete and then overwrite everything?
posted by This_Will_Be_Good to computers & internet (13 answers total) 3 users marked this as a favorite
As far as moving the content, the easiest thing would be to use Wordpress' Export (in Admin >> Tools >> Export). It'll spit out an XML file, which you can then upload into the Dreamhost's Wordpress Admin's Import page.
Alternatively, if you have a ton of content (i.e., the export gives you a huge file that the server can't handle), you could do a mysqldump from your local machine, FTP that to your server, and do a mysqlimport, via the command line.
posted by estherbester at 10:39 PM on February 12, 2012 [2 favorites]