![]() |
|
Customer Support
How do I use MySQL with Python?
You can use the Python mysqldb module by importing it like this in a python script that is chmod 755:#!/usr/bin/pythonMore documentation on using mysqldb is at http://www.sourceforge.net/projects/mysql-python/.
import MySQLdb
def main():
print "Content-type: text/html\n"
print "hello!"
main()
User-Contributed Notes |
|||
|
|||
|
|
|||
Related Questions:
How do I use sendmail with perl?
How do I use cgi scripts?
My formmail.pl script from Matt's Script Archive doesn't work.
Why does Sbox say "no such file or directory" but the files are there?
What Perl modules are installed?
Do you offer CGI? What scripts can I install?
I can't get the python socket module to work?
Why do I get: Sbox error file is world writable?
What is the path to perl or some other program?
Sendmail does not work or does not accept my optional arguments.
Importing the Python cgi module doesn't work.
What version of Python do you support and what modules are available?
Why do I get: Sbox Error exec of [some script] failed (Exec format error)?
Why do I get: Sbox error file not world executable?
Why do I get: Sbox error the directory containing [some script] is world writable?
Why do I get: Sbox Error exec of [some script] failed (Permission denied)
Why do I get: Sbox error: cannot run suid scripts
Why do I get: Sbox Error exec of [some script] failed (Resource temporarily unavailable)
Browse Categories:Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales |

