Jump to content

Importing Error


lizardqing

Recommended Posts

I am trying to import a phpbb2 database onto a new web host and keep getting an error. This is what I get.

 

Error #1 -

 

Error

 

SQL query:

 

#

# Table Data for phpbb_categories

#

INSERT INTO phpbb_categories( cat_id, cat_title, cat_order )

VALUES (

'4', 'Parts Bin', '30'

);

 

MySQL said: Documentation

#1062 - Duplicate entry '4' for key 1

 

Error #2 -

 

Error

 

SQL query: Documentation

 

SELECT *

FROM Array

WHERE CONCAT_WS( "-", cat_id, cat_title, cat_order ) = "4"

ORDER BY cat_id, cat_title, cat_order

LIMIT 0 , 30

 

MySQL said: Documentation

#1146 - Table 'scalefir_phpb2.Array' doesn't exist

 

--------------------------------------------------

 

Is there anyway to fix this so I can transfer the data? This is about 2 years worth of stuff that I really would like to keep. The database stuff is one area that I am just starting to learn so I don't even really know what to use to open it up to try and fix it. Thanks for your help.

 

Chris

Link to comment
Share on other sites

Your first error basically states that "cat_id" has a duplicate entry of '4' (so you are trying to insert data into a second "4" ID number, which is already taken). To switch it, change the 4 to something that's not already taken in the table.

 

Your second error is just that, your table "scalefir_phpb2.Array" doesn't exist. You're going to have to create the table first in order to transfer to it.

Link to comment
Share on other sites

OK. I get what you are saying.

 

Could you tell me how to go about editing it. Going this deep into it is new to me. Can i edit it from phpmyadmin or do I need something else. Also how would I create the table and does it matter where. Sorry if the questions are stupid, I just don't want to screw something up. Have enough head aches all ready moving several web sites alone.

Link to comment
Share on other sites

I think I figured out the duplicate 4 issue.

 

But now I get this.

 

Error

 

There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

 

ERROR: Unclosed quote @ 92

STR: '

SQL:

INSERT INTO phpbb_search_wordlist (word_text, word_id, word_common) VALUES('�', '20795', '0');

 

 

SQL query:

 

INSERT INTO phpbb_search_wordlist (word_text, word_id, word_common) VALUES('�', '20795', '0');

 

MySQL said: Documentation

#1062 - Duplicate entry '?' for key 1

 

-----------------------

 

Error

 

SQL query: Documentation

 

SELECT *

FROM Array

WHERE CONCAT_WS( "-", word_text, word_id, word_common ) = "?"

ORDER BY word_text, word_id, word_common

LIMIT 0 , 30

 

MySQL said: Documentation

#1146 - Table 'scalefir_phpb2.Array' doesn't exist

Link to comment
Share on other sites

Can i edit it from phpmyadmin or do I need something else.

You can edit it in PHPMyAdmin.
Also how would I create the table and does it matter where.
It doesn't matter where. Click on the database name in MyAdmin and at the bottom of the page there should be a "Create new table on database [dbname]". Use that to create the table.

 

And this error: #1062 - "Duplicate entry '?' for key 1", is the basically the same thing, you have duplicate "?" (or entries) in that key/row. You have to change it.

 

Don't worry about screwing things up, that's how you learn. There's lots of tutorials out there to help, too, just google them.

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.