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.

I have 2 droplets, both with a LAMP stack. Both also have PHPMyAdmin installed, run a PHP application, and have a self-signed SSH certificate that auto redirects to https.
What I would like to do is connect to the MySQL database that’s on Droplet 1 from the app on Droplet 2. I know you can do this by running a mysql server Droplet 1, but both need to run a full PHP app in this case.
Here is what I’ve already done and tried:
sudo ufw allow 3306/tcp and sudo service ufw restartMy PHP app connection settings $db[‘remote_db’] = array( ‘dsn’ => ‘’, ‘hostname’ => ‘PRIVATE IP OF DROPLET HERE’, // in the format xx.xx.xx.xx so not with https:// in front of it ‘port’ => 3306, ‘username’ => ‘user’, ‘password’ => ‘password’, ‘database’ => ‘database’, ‘dbdriver’ => ‘mysqli’, ‘dbprefix’ => ‘’, ‘pconnect’ => FALSE, ‘db_debug’ => FALSE, ‘cache_on’ => FALSE, ‘cachedir’ => ‘’, ‘char_set’ => ‘utf8’, ‘dbcollat’ => ‘utf8_general_ci’, ‘swap_pre’ => ‘’, ‘encrypt’ => FALSE, ‘compress’ => FALSE, ‘stricton’ => FALSE, ‘failover’ => array(), ‘save_queries’ => TRUE );
Currently the app op Droplet 2 can not connect to the database that runs on Droplet 1. What am I missing?
A few questions:
/etc/mysql/my.cnf file with bind-address?hbarnard
keneucker
keneucker
rich
santoshpatil
Aspiresoftserv
Yakin
Thejaswini-Rao-U
775c69c916d345a7a367d867078ccb
mayricoak
ndam
bc2f52583874402a988f587c00195d