1

my .env file setup like this on the live server. but while I am

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=onlyaruv_notepad-apps
DB_USERNAME=onlyaruv_notepad
DB_PASSWORD=mypassword

the error was

SQLSTATE[28000] [1045] Access denied for user 'onlyaruv_notepad'@'127.0.0.1' (using password: YES) (SQL: select * from `users` where `email` = ih76632@gmail.com limit 1)

I access my ssh via putty using this host and password http://5.100.156.10:2082 I am confused .

Sharifur Robin
  • 327
  • 1
  • 3
  • 15

2 Answers2

0

Have you given All privileges to onlyaruv_notepad this user? if you not please give all privileges to the user. still, The problem not solved check host is correct or not. (change DB_HOST=127.0.0.1 to DB_HOST=localhost

Jigar
  • 3,055
  • 1
  • 32
  • 51
0

Check your database connection carefully. If it does not work then Run the following artisan command and try again

php artisan config:clear
php artisan cache:clear
php artisan view:clear
Nazmul Hasan
  • 1,937
  • 13
  • 21