Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Can connect with mysql but not MySQLdb

Help
2012-03-02
2012-09-19
  • BurntOffering
    BurntOffering
    2012-03-02

    Hi,

    I've used MySQLdb in the past without any problems, but I'm having trouble
    with a new project I'm setting up. I can connect to the (newly created)
    database with the mysql utility, but if I try to connect via MySQLdb.connect,
    it raises an OperationalError exception (1045, access denied). I've triple-
    checked the host, username, password, and database name. This is really
    driving me up the wall. Has anyone else had this problem?

    Thanks!