Hello. I'm now trying to use redhat openshift.
I am struggling access database - mysql-5.1 - which is set via openshift
cartridge.
I got admin user(admin), password and database name(we2py).
So I modified database setting in models/db.py
as
db = DAL('mysql://admin:[email protected]/web2py')
But web2py application can't connect to mysql.
OperationalError: (2003, "Can't connect to MySQL server on
'web2py-codingday.rhcloud.com' (111)")
I think I couldn't understand enough. I am a noob for both web2py and
openshift.
How can I make web2py connect to database right?
Thank you.