I try to connect my laravel project to myslq on my VPS server .
I change the .env
file like that :
DB_CONNECTION=mysql
DB_HOST=VPSIpAddress
DB_PORT=3306
DB_DATABASE=DBName
DB_USERNAME=root
DB_PASSWORD=Password
And I clear all cache by artisan , but this way return this error
SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.
(SQL: select * from users where id = 0 limit 1)
Any help please ?