Question
Connect Laravel Project at local device to a mysql droplet at DigitalOcean
Hello,
I am trying to run migrations from my local device to digital oceans DB.
I have sat up a PHPmyAdmin account and an mysql account.
In Laravel settings:
DBCONNECTION=mysql
DBHOST=[IP address of my phpmyadmin droplet]
DBPORT=3306
DBDATABASE=[myDBName]
DBUSERNAME=[username]
DBPASSWORD=[password]
I try to run a migration but its providing me with the following:
Host ‘xx.xxx.xxx.xxx’ is not allowed to connect to this MySQL server
The user I am using has been fully granted all privileges.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×