mercredi 1 juillet 2020

SQLSTATE[HY000] [1045] Access denied for user 'lagaikha_cricketuser'@'lin1505.byte90.net' (using password: YES) Laravel 5.2 on Live Web Server

I am trying to login on my website which is built in laravel 5.2 but I am getting this error of access denied for user on my live web server. I have also put credentials in .env file that are shown below:

APP_URL=http://lagaikhaiexchange.com
    
    DB_CONNECTION=mysql
    DB_HOST=lagaikhaiexchange.com
    DB_PORT=3306
    DB_DATABASE=mydatabase
    DB_USERNAME=myuser  
    DB_PASSWORD=mypassword

and I also gave the all privileges to user lagaikha_cricketuser But I am unable to find that why my application is not connecting to database. Although On localhost, the same code working fine and doing everything. Any help would be appreciated... Thank you



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire