This is a pure Bluemix question!
My code works fine on the local host, but when I transferred it to Bluemix, my connection to the database turned out to be unsuccessful. When checking the logs, I found the problem "Calling the undefined function mysqli_init ()" the HTTP response is 500. I found out that the extension was disabled to reduce it and found some information about it: Build options .
Unfortunately, I tried this and could not. Perhaps I misunderstood the solution.

Any help would be greatly appreciated.
EDIT:
bgconfig -> bp-config solves "undefined function error"
Some extension seems to be added, but not all. "Fatal error:" PDO "class not found in / home / vcap / app / htdocs / db _config.php on line 15"
However, I added the PDO extension to options.json.
I tried adding php.ini rewrite 
But still get the same error ...
For information: line 15 on db_config.php is simple:
$db = new PDO('mysql:host=us-cdbr-iron-east-02.cleardb.net;dbname=ad_dae231843a962ca', $username, $password);}
inside try and catch, of course.
Any clues?
source
share