I m using laravel 8 and while using php artisan migrate command i m getting


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

at C:\xampp\htdocs\OnlineCourseAcademy\vendor\laravel\framework\src\Illuminate\Database\Connection.php:678 674▕ // If an exception occurs when attempting to run a query, we'll format the error 675▕ // message to include the bindings with SQL, which will make this exception a 676▕ // lot more helpful to the developer instead of just the database's errors. ➜ 678▕ throw new QueryException( 680▕ ); 682▕

1 C:\xampp\htdocs\OnlineCourseAcademy\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)")

2 C:\xampp\htdocs\OnlineCourseAcademy\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70 PDO::__construct("mysql:host=;port=3306;dbname=forge", "forge", "", [])

Read more here: https://stackoverflow.com/questions/67548092/i-m-using-laravel-8-and-while-using-php-artisan-migrate-command-i-m-getting

Content Attribution

This content was originally published by Luv_scientist at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: