title: Python script to connect to hosted database on Namecheap
body: <p><strong>EDIT 1</strong></p>
  
  <p>It looks like I can import the sqlite3 package.  Now I'm working on figuring out how to specify the IP address of the hosted server so I can connect to it.  It's not looking likely though.</p>
  
  <hr>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>It looks like sqlite3 is not designed to access hosted databases.  The search continues.</p>
  
  <hr>
  
  <p>This is a pretty basic question, however I haven't found any resources on Namecheap's website, here, or through Google searches that shed any light on my problem.  I'm trying to write a python script that will query my hosted database to retrieve records.  So far I haven't gotten past the first step of importing a module and this is my code:</p>
  
  <pre><code>#!/usr/bin/python
  
  print "Content-type: text/html\n\n"
  
  import cgitb
  cgitb.enable()
  
  import PyMySQL
  </code></pre>
  
  <p>cgitb works fine and prints out the following error message:</p>
  
  <p><a href="https://i.stack.imgur.com/LlMjf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LlMjf.png" alt="enter image description here"></a></p>
  
  <p>I also tried importing MySQLdb and received the same error.  Does anyone have experience with databases, python, and namecheap?</p>