DO + Serverpilot, Accessing mysql database issues
I’m looking for assistance as this issue has got me beat!
OK, so i’m looking at setting up a basic droplet to run a Craft CMS site. I’ve set up quite a few of these in the past using Serverpilot. Everything works well.
Today I decided to try the LEMP stack on Ubuntu 16.04. Installed nicely, managed to get everything that I needed installed however I’m having issues with the database. I’ve created a new database, added a new user and granted all permissions to them. Check and can access that database via the terminal.
I use Sequel Pro on my local machine and I wanted to import my exported local database but I cannot for the life of me access the database. Just keeps saying it cannot connect. Finally managed to get into it using the SSH option and imported the local database. Then when Craft tries to connect to the database, it gives a ‘cannot connect’ error as well.
So after ages of trying, I decided to go back to a Serverpilot set up. Destroyed my droplet, recreated a basic Ubuntu one, then used Serverpilot to create the app and database. Same issue again, unable to access the database from Sequel Pro.
I cannot work out what is going wrong? In each case Ive attempted the commenting out the bind address, but again, nothing works.
Any ideas before I lose what little hair i have left?