Reputation: 79
I have 4 projects in laravel 4 and 1 in laravel 5.4 so I uploaded all of them in Host server the 4 (laravel 4) are working but the (laravel 5.4)project dose not works an have error like this.Error Page
this is my config.php and .env enter image description here
Upvotes: 0
Views: 393
Reputation: 6773
your DB_PORT is wrong (as localhost
) it should be
DB_PORT=3306
another tip
either create a mysql user reshad_rphs
or change your .env
file DB_USERNAME
to existing user like root
.
Its always recommended to use a separate user for apps other than root user.
to test whether everything else works just use root and see.
DB_USERNAME=root
Upvotes: 0
Reputation: 273
You can try thi way
clean cache by run these command
php artisan cache:clear
php artisan config:clear
.
And then restart your server
Upvotes: 1