Kunaljain's Weblog

January 9, 2009

ERROR: 1062 Duplicate entry ‘localhost-‘ for key ‘PRIMARY’

Filed under: MySql — Kunal Jain @ 11:47
Tags: ,

If MySQL give this error then check your hostname

shell> hostname

It might be localhost. Change your hostname. To know how to change hostname click here

Advertisements

Create a free website or blog at WordPress.com.