Another possible case for this: DB named in uppercase. For some reason I had this issue with MYDB. After renaming it to mydb everything begin to work fine.