Generic-University icon indicating copy to clipboard operation
Generic-University copied to clipboard

Illuminate\Database\QueryException - SQLSTATE[HY000] [1045]

Open fusionsec opened this issue 4 years ago • 18 comments

Hello,

I'm getting error after running php artisan migrate:

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:\Generic-University\vendor\laravel\framework\src\Illuminate\Database\Connection.php:671 667| // If an exception occurs when attempting to run a query, we'll format the error 668| // message to include the bindings with SQL, which will make this exception a 669| // lot more helpful to the developer instead of just the database's errors. 670| catch (Exception $e) {

671| throw new QueryException( 672| $query, $this->prepareBindings($bindings), $e 673| ); 674| } 675|

1 C:\Generic-University\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDO\Exception.php:18 Doctrine\DBAL\Driver\PDO\Exception::("SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)")

2 C:\Generic-University\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:40 Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))

I'm using XAMPP for Windows for the DBs, and under Mysql here are the users: MariaDB [mysql]> SELECT User, Host FROM mysql.user; +------+-----------+ | User | Host | +------+-----------+ | root | 127.0.0.1 | | root | ::1 | | pma | localhost | | root | localhost | +------+-----------+

Thanks for any assistance.

fusionsec avatar Sep 26 '20 22:09 fusionsec