samedi 11 avril 2020

(I don't have this problem on my local host)... SQLSTATE[28000] [1045] Access denied for user 'myworldm_ecommerce'@'cp-9.hkdns.co.za'

I'm having this error on cpanel...

$products = products::inRandomOrder()->take(3)->get();

Caused by the above line of code.

I've tried to tried editing my .env file and everything there is as it should be..

I even tried to edit the config/database.php file which I didn't have to edit on my local host.

I also tried running this commands php artisan route:cache php artisan view:cache and php artisan config:cache

Please assist with a different solution

Thank you in advance!!!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire