title: Duplicate entry for primary key on MySQL
body: <p>My table just has single column <code>ID</code> (passwords for admin Log-in)</p>
  
  <p>Because this code runs every time that program starts, I can prevent errors occurs on <code>creating database</code> and <code>creating tables</code> by using <code>IF NOT EXIXTS</code> statement.</p>
  
  <p>Since <code>adminLogin</code> table should be initial first time, When user re-run the program, the <code>Duplicate entry for primary key</code> error occurs.</p>
  
  <p>I used <code>IF NOT EXISTS</code> for inserting into table, But there is some another error!</p>
  
  <p>My table:</p>
  
  <p><img src="https://i.stack.imgur.com/kXg9F.jpg" alt="first screen"></p>
  
  <p>Error:</p>
  
  <p><img src="https://i.stack.imgur.com/pxgAy.png" alt="second screen"></p>