Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5534

2ninerniner2 on "Trouble moving local MAMP wordpress site to server"

$
0
0

That error leads me to believe that you ran the WP installer on the hosted site before you tried the import; the table is already there from that and now you are attempting to create it again with the SQL import.

The easiest way to fix this is create a new database on the hosted site (and please use a shorter name! LOL :) ... no need for anything that descriptive at this location ... just no spaces in the name). Import the SQL file you exported from MAMP into this new database; it should now import with no errors. You can just leave the original one there as-is or delete (drop) it.

Edit the wp-config.php on the hosted site to reflect this new database's credentials for DB name, User, Password.

If you did in fact run the WP install first, then you will have to replace the wp-content folder with the one from your MAMP install, as that is where all your themes, plugins, media, etc. are located.

Not knowing which instructions you followed, you may have to change the site url and home url in the hosted database after the import. You can verify this by selecting the wp_options table and checking the values for both fields; they should both be:

http://www.molinaroappraisalservices.com

After it is all up and running, install and run this plugin to change the URLs of your images, links, etc. from the values in your MAMP install to the new hosted location:

http://wordpress.org/plugins/velvet-blues-update-urls/

In your case (assuming your MAMP install is in a folder named wordpress):

Old Site: http://localhost:8888/wordpress
New Site: http://www.molinaroappraisalservices.com
- check all options EXCEPT the last one


Viewing all articles
Browse latest Browse all 5534

Trending Articles