๐ŸŒด Palm Debugger Exception

Error: Database connection failed (mysql): SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

๐Ÿ“ Error Location

app/Database/Db.php:134

๐Ÿ“ Code Context

127 $options[PDO::MYSQL_ATTR_SSL_KEY] = $_ENV['DATABASE_SSL_KEY'];
128 }
129 }
130
131 try {
132 $this->conn = new PDO($dsn, $this->username, $this->password, $options);
133 } catch (PDOException $e) {
โ†’ 134 throw new Exception(
135 "Database connection failed ({$this->driver}): " . $e->getMessage(),
136 (int)$e->getCode(),
137 $e
138 );
139 }
140 }
141

๐Ÿ“š Stack Trace

  1. app/Core/Model.php:355
    App\Database\Db::connect()
  2. app/Core/Model.php:395
    App\Core\Model::newQuery()
  3. modules/Users/Service.php:18
    App\Core\Model::where()
  4. src/routes/web.php:85
    App\Modules\Users\Service::getAll()
  5. app/Palm/Route.php:672
    {closure}()
  6. index.php:256
    Frontend\Palm\Route::dispatch()