Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Joel Rivera
Joel Rivera
29,401 Points

WordPress Migration

When Migrating WordPress from one host to another. Is it necessary to deactivate or delete any Cache Plugins? Also is it necessary to turn off pretty permalinks?

I am running into an issue with migrating a live website from host A to host B. I backed up all my files and database and followed the steps that are outlined here on Team Treehouse and on WordPress.org. I have attempted to use several plugins with no success. The files upload but when I try to import the database I keep getting this error message.

1064 - 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 'PK' at line 1

Note: I have migrated websites in the past and have never faced this issue. Not sure what's happening.

Any tips or advice?

Thanks

3 Answers

Matt Campbell
Matt Campbell
9,767 Points

Are the mySQL servers of the same version?

Joel Rivera
Joel Rivera
29,401 Points

I just checked. They are different. On the shared its 5.0 and on the VPS its 5.5.36

Matt Campbell
Matt Campbell
9,767 Points

Could be that then. Try exporting the database in compatibility mode.