so I want to deploy my existing laravel porject into my digitalocean vps I user this tut and I upload my site successfully
also my env file is
APP_E
There are a few possibilities why your getting this error.
Check to see if this user has access to the database from the remote location. By default the root user has access to the server locally (localhost,127.0.0.1 and ::1).
So check to see if the user has access from either your remote ip or from anywhere.
As you are using digitalocean I would suggest to check if they have a specific configuration to connect to mysql database.