Using MySQL in Pydev Eclipse

I am trying to access a MySQL database using python via Pydev Eclipse. I have installed the necessary files to access MysQL from python, and I can only access the database when I write code in the Python IDLE environment and run it from the command line. However, I am unable to launch my applications from Pydev.

when I use this "MysqlDB import" I get an error, but there are no errors in IDLE and my code runs very smoothly. Does anyone know if there was a problem? Thanks to

+2


a source to share


1 answer


If the connector works in IDLE but not PyDev. Open Eclipse preferences, open the PyDev directory and go to the interpreter screen. Remove the interpreter and add it again from a location on your computer (usually C drive). Close and restart Eclipse and it should now work.



0


a source







All Articles