Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi,
I created a managed MySQL cluster, but I’m having problems connecting to it from my PHP script. I can’t seem to find a tutorial online yet.
How do I connect to a DO managed MySQL DB from PHP using mysqli_connect ?
Normally, I connect using syntax like:
$con = mysqli_connect("hostname", "user", "password", "database");
mysqli_set_charset($con, "utf8");
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
Any help is much appreciated.
Regards,
Wyatt
hbarnard
keneucker
keneucker
rich
santoshpatil
Aspiresoftserv
Yakin
Thejaswini-Rao-U
775c69c916d345a7a367d867078ccb
mayricoak
ndam
bc2f52583874402a988f587c00195d