Help get this topic noticed by sharing it on Twitter, Facebook, or email.

How do I connect to ClearDB from an IBM Bluemix .php Application?

I have bound the ClearDB Service, used the connection details to connect with MySQL Workbench, dumped my data into the database, run a few queries to verify the data is all there, and I am all good up to that point.

I've also uploaded a site to Bluemix that I had running locally using apache and mysql on my machine.

Finally, I've modified the connection string in my config.php as follows:

$mysqli = new mysqli("us-cdbr-iron-east-02.cleardb.net", "(username)", "(password)", "(schema)", 3306);

and I'm not getting any obvious errors, but I am also not getting any data back.

What am I doing wrong?
2 people have
this question
+1
Reply