0

I'm trying to connect from my Heroku app to a mysql db (Xeround) in an object-oriented way:

$this->db = new mysqli(
    Credentials::databaseHost(), 
    Credentials::databaseUsername(), 
    Credentials::databasePassword(), 
    Credentials::databaseName()); 

(for clarity--> this line is located within the constrcutor of a central dispatcher I use. The sql connection is injected by this dispatcher if needed)

In my locally running production environment everything is working fine, however once I test it on Heroku the app hangs at the above point. No error msgs.

Any suggestions?

2
  • Did you ever resolve this issue? I'm having a similar problem which seems to suggest that Heroku does not support mysqli. Commented Oct 1, 2012 at 12:21
  • Marco...sorry...I am not a power user of stackoverflow...didn't see your comment. No, I didn't solve it, but I guess Adam Loso's reply is the answer to our problem... Commented Mar 29, 2015 at 14:28

1 Answer 1

1

Dunno if this is still an issue for you guys but no, heroku does not support mysqli.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.