--> -->
 
 
<class '_mysql_exceptions.OperationalError'>
Python 2.7.5: /usr/bin/python
Thu Oct 22 11:20:17 2020

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/urnerk/webapps/htdocs/cgi-bin/form1.cgi in ()
      9 
     10 conn = MySQLdb.connect(user="urnerk",passwd="luckyducky")
=>   11 conn.select_db("urnerk")
     12 curr = conn.cursor()
     13 numrecs = curr.execute("select statename, postal, capital from states;")
conn = <_mysql.connection open to 'localhost' at 1ed7640>, conn.select_db = <built-in method select_db of Connection object>

<class '_mysql_exceptions.OperationalError'>: (1044, "Access denied for user 'urnerk'@'localhost' to database 'urnerk'")
      args = (1044, "Access denied for user 'urnerk'@'localhost' to database 'urnerk'")
      message = ''