I am working using laravel, and i want to connect my laravel project to db… but i got this
QueryException in Connection.php line 647:
SQLSTATE[HY000] [1045] Access denied for user ‘epiz_19546904’@‘192.168.0.59’ (using password: YES) (SQL: select * from categories)
i really sure when i config the project in my local server of my computer, i have to restart the server (e.g php artisan serve) but i dont know how to do that on this server, so the point is How i resart my server…
(SSH?Command? where ?)
before i upload my project, i create db table and import it from my local computer. and then i setting my database.php and .env of my project, then i clear the config and the cache, i do like
{php artisan cache:clear} or
{php artisan config:clear}
and last
{php artisan config:cache}
then i upload it, but it seem not working for me…CMIW
Which settings did you use? The database.php settings or the .env settings? The .env settings override the database.php settings (assuming the env function is being used there) so you don’t need to configure both.
Anyway, you could try to dump the result of config('database') on a page to see which settings are actually being loaded and whether they match your account’s database credentials.