title: Trying to insert data into mysql database but i am getting the error as module 'mysql.connector' has no attribute 'connector'
body: <p>I have imported the connector as well using both the </p>
  
  <pre><code>import mysql.connector (or) `import mysql.connector as mysql`
  
  con = mysql.connector(host="localhost", user="root", password="root", database="pythontkinter")
     cursor = con.cursor()
     cursor.execute("insert into student values('"+id+"','"+name+"','"+phone+"')")
     cursor.execute("commit")
  MessageBox.showInfo("Insert Status","Inserted Successfully")
     con.close()
  </code></pre>
  
  <p>To be noted i am processing this in windows os system...And my file name is Python-tkinter.</p>