troubleshooting Question

#1062 - Duplicate entry '1' for key 'PRIMARY'

Avatar of ak010
ak010 asked on
MySQL Server
3 Comments1 Solution3802 ViewsLast Modified:
Hello,

I'm running XAMPP on Windows locally. Trying to import a large SQL file into MySQLwith content I am not familiar with, using phpMyAdmin (doing a demo). The error message I'm getting is: #1062 - Duplicate entry '1' for key 'PRIMARY'.

When I attempt the same on my hosting server, the error message is #1062 - Duplicate entry '1' for key '1'. "Do not use AUTO_INCREMENT for zero values" is checked by default on the web hosting server.

phpMyAdmin that I'm using locally is an older version and the option "Do not use AUTO_INCREMENT for zero values" is not available.

I would greatly appreciate any help.
ASKER CERTIFIED SOLUTION
G_H

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros