Getting an error
called packets out of order
while trying to connect to a forge database from a local machine using homestead. How do I fix this error?
To fix this, you must whitelist your machine's IP address from Forge's firewall.
Instructions:
Login to Laravel Forge
Click on your server and click on the Network tab located in the sidebar
In the NAME field, enter MYSQL
Now click ADD RULE then wait about 10 seconds then refresh your application and it should work.
I spent 3 hours trying to figure this out.
Even if you don't use Forge and still get this error, just adapt the instructions to whatever DB host you use and it should work.