Jump to content

Syntax error while importing .sql file to MySQL database


Tribe25

Recommended Posts

Hi,

I've never done any .sql work so please excuse me if the syntax question is obvious.

 

I am trying to import a .sql file into a new MySQL database on Godaddy. I uploaded the file to the database backup directory and I'm using the restore feature to import the file. I already imported one file successfully to another database on Godaddy with this method. The second file generates an error log.

 

The error log contents :

 

ERROR 1064 (42000) at line 1: 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 '

CREATE TABLE `wp78ecomments` (

  `comment_ID` bigint(20) unsigned NOT NULL a' at line 1

 

Here are the first few lines of code:

 

CREATE TABLE `wp78ecomments` (

  `comment_ID` bigint(20) unsigned NOT NULL auto_increment,

  `comment_post_ID` int(11) NOT NULL default '0',

 

The file I'm trying to imported was created with phpMyAdmin version 2.6.4-pl3

and the database version I'm importing to is 5.0

 

Thanks for you insight.

Link to comment
Share on other sites

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.