|  Home
Help

WordPress Help

Edit SQL file for import


Step 4 of the Move a Managed WordPress site to an unmanaged WordPress account series.

Required: You'll need a text editor to make the necessary changes in this SQL file. There are many third-party text editors available, we recommend Notepad++. Do not edit the file in a word processing application like Microsoft Word.

Before you can import the SQL file downloaded in Export your site database, edit it to remove lines that will interfere with the import process.

  1. Locate the SQL file that you exported.
  2. Open the file with the text editor of your choice.
  3. Locate the following lines and delete them:
    --
    -- Database: `example-database-name`
    --
    CREATE DATABASE `example-database-name` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
    USE `example-database-name`;
      
  4. Save the changes.

The file is ready to be imported in the next step.


More info


Was This Article Helpful?
Thanks for your feedback. To speak with a customer service representative, please use the support phone number or chat option above.
Glad we helped! Anything more we can do for you?
Sorry about that. Tell us what was confusing or why the solution didn’t solve your problem.