SQL database import problem - Need help - Will pay

Discussion in 'MySQL' started by patron123, Jul 12, 2009.

  1. #1
    Hi. When trying to import 9.4mb database of blog i get this error:

    Error
    MySQL said: Documentation
    #1062 - Duplicate entry '1-0-_transient_random_seed' for key 'PRIMARY'

    If anyone can help me to solve this or better if anyone could do the import for me for a small fee.

    Thanks in advance
     
    patron123, Jul 12, 2009 IP
  2. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,079
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #2
    I would remove key PRIMARY from table just for import, thats should solve your problem
     
    deriklogov, Jul 12, 2009 IP
  3. HivelocityDD

    HivelocityDD Peon

    Messages:
    179
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    which version of mysql you are using ?

    Are you trying to import data from a new version to older version ?
     
    HivelocityDD, Jul 13, 2009 IP
  4. ira123

    ira123 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes i can do this pls contact me , thanks
     
    ira123, Jul 14, 2009 IP
  5. Dismatikz

    Dismatikz Well-Known Member

    Messages:
    698
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #5
    You can't have more then one PRIMARY KEY in your database. Both databases have one, and when you try to import, the database calls on the PRIMARY KEY and creates conflict.

    You need to remove the PRIMARY KEY from the existing database first.
     
    Dismatikz, Jul 18, 2009 IP
  6. Unique.Suren

    Unique.Suren Active Member

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #6
    Hi,
    u hv to remove the primay key from the design mode, but be careful the data into the primary marked key may be duplicate...
    when u remove the primary key it will automatically imports the data....
    go ahead patron123
     
    Unique.Suren, Jul 23, 2009 IP
  7. mji2010

    mji2010 Active Member

    Messages:
    762
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #7
    did removing the primary key solve the problem?
     
    mji2010, Jul 27, 2009 IP
  8. charlyms21

    charlyms21 Peon

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Can someone tell me how to remove the primary key from the php my admin menu,please help
     
    charlyms21, Apr 2, 2010 IP
  9. nice12

    nice12 Member

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #9
    Alter table your_table drop primary key;
     
    nice12, Apr 5, 2010 IP
  10. charlyms21

    charlyms21 Peon

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I am having the same problem as the TS,ie when I tries to import another blogs sql databse from the my PHP menu,I am getting the same message as the TS.
    Now there are more than 1table in the PHP my admin menu like wp comments etc.
    As directed by one of the users who told the solution,I am confused as to which tables Primary key should I delete.Thanks in advance
     
    charlyms21, Apr 5, 2010 IP
  11. itsupportservice

    itsupportservice Peon

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thanks for giving the solution of that Que... Because so many people facing this problem.. So from that many people got the solution..!!
     
    itsupportservice, Apr 13, 2010 IP