[DB-SIG] MySQL Access
Andy Dustman
farcepest at gmail.com
Wed Aug 10 15:51:07 CEST 2005
On 8/9/05, Brett Chadwick <brett.chadwick at gcserv.com> wrote:
> I am attempting to access a MySQL server through a graphical python program I have writing.
>
> I have successfully made a connection to the database which runs on a Linux server, however I cannot find any syntax/command examples which relate to using the built in _mysql module of python.
>
> I believe if someone could give me a simple example of how to obtain a cursor and write data to a specific table/column and retrieve information from this. I can elaborate and finish this program.
>
> Thank you for any help you can provide with this, I know it is relatively simple.
You're not supposed to use _mysql directly. Use MySQLdb instead. Read
the user's guide and PEP-249, and use the built-in documentation as
reference, i.e. pydoc MySQLdb or help('MySQLdb') in the interpreter.
--
Computer interfaces should never be made of meat.
http://www.terrybisson.com/meat.html
More information about the DB-SIG
mailing list