first of all, there would be so many possibilities if your "test" was done in a random manner. If you can reproduce what you describe, you may want to check:
1. which python interpreter does myeclipse have?
2. Did myeclipse compile py to pyc and then execute?
3. how did you set up mysql?