Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9179685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:51:40+00:00 2026-06-17T17:51:40+00:00

I am trying to import a database and have run into a couple of

  • 0

I am trying to import a database and have run into a couple of errors I cannot get around.

First I run the below:

/my/location/mysql/bin/mysql -u root -p < my-db-schema.sql

Then when I run:

/my/location/mysql/bin/mysql -u root -p < my-db-data.sql

But after giving my password I get:

ERROR 1436 (HY000) at line 80: Thread stack overrun: 5850 bytes used of a 142083 byte stack, and 127888 bytes needed. Use 'mysqld -O thread_stack=#' to specify a bigger stack. 

I tried running it again and now I get:

ERROR 1062 (23000) at line 25: Duplicate entry '1' for key 'PRIMARY'

I would be very grateful if somebody could explain why this might be happening maybe how to fix.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:51:42+00:00Added an answer on June 17, 2026 at 5:51 pm

    So the first error is relating to MySQLs thread_stack value. It needs to be increased inside the config file in /etc/my.cnf.

    Be sure to restart your MySQL instance after increasing it.

    The second error is related to the first error in that it seems to be due to the system already having data to be imported when you ran the command the first time. The easiest way to get rid of the duplicate key error is to delete all the data you imported and then try again.

    Hope that helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to import a text file into a MySQL database, and I'm having
I have been trying to import this excel file my mysql database, and it
I am trying to import a large CSV file into a MySQL database. I
I am trying to import data to an Oracle database. I have .imp and
I am trying to import data from excel file (.xlsx) into sql database, my
I'm trying to export a product database out of FileMakerPro into a WordPress import
I'm trying to run a simple insert query to a database. I have it
I'm trying to connect to SQLite database with Ecplise but I have some errors.
I'm trying to import some data from excel into a database . i got
I am trying to import email communication into a database table using Bulk Insert

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.