Jump to content

CREATE DATABASE /*!32312 IF NOT EXISTS*/ error when moving wordpress database


Recommended Posts

Hi. I'm moving a wordpress website to another web host but when I try to import the database, I get this error message:

Error at the line 22: CREATE DATABASE /*!32312 IF NOT EXISTS*/ `WP_muammer_dogan` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */;

I've searched it on Google and found out that it is a hint to MySQL that the command only works in versions 3.23.12 or later but my mysql is much newer. Can you please tell me how I can fix this? I don't know anything about mysql and this is the first time that I'm moving a database. The website has cpanel. Thanks very much.

Open up the mysql command line and connect to the db server.

 

Then, execute a sql file using the "source" command.

// Example, If you're on unix environment

mysql> sorce /path/to/schema.sql;

// on windows 

mysql> SOURCE C:/path/to/schema.sql;
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.