Re: Code not working
I tested the code.
And on my mashine it works as expected:
stefan@sunmob:~$ python mysqltest.py
4 rows were inserted
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13 to server version: 5.0.22-Debian_3-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> select * from test.animal1;
+--------+-----------+
| name | category |
+--------+-----------+
| snake | reptile |
| frog | amphibian |
| tuna | fish |
| racoon | mammal |
+--------+-----------+
4 rows in set (0.00 sec)
mysql> quit;
Bye
stefan@sunmob:~$ python -V
Python 2.3.5
Python 2.3.5 (#2, Jun 13 2006, 23:12:55)
[GCC 4.1.2 20060613 (prerelease) (Debian 4.1.1-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
>>> print MySQLdb.version_info
(1, 2, 1, 'final', 2)
>>>
Can you provide any error codes or at least version informations ?
Subject
Written By
Posted
Re: Code not working
July 30, 2006 02:25PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.