0
votes

using MySQL database and has PHP 7.4*

Illuminate\Database\QueryException

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations and table_type = 'BASE TABLE')

2

2 Answers

0
votes

You'll have to turn MySQL on in order to use it.

0
votes

i'll tell you my experience, i had the same problem with laravel. check the port of mysql, if you have xampp or wampp or other server. and then go to the file .env and write the port number and save, probably if you changed the port number, eg:3307, you need to add it in .env. i did it and worked.