Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred in driver: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.             case '1364':
  2.             case '1566':
  3.                 return new NotNullConstraintViolationException($message$exception);
  4.         }
  5.         return new DriverException($message$exception);
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  9.      *
  1.         if ($driverEx instanceof DriverException) {
  2.             return $driverEx;
  3.         }
  4.         if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof DeprecatedDriverException) {
  5.             return $driver->convertException($msg$driverEx);
  6.         }
  7.         return new Exception($msg0$driverEx);
  8.     }
  1.      *
  2.      * @return Exception
  3.      */
  4.     public static function driverException(Driver $driverThrowable $driverEx)
  5.     {
  6.         return self::wrapException($driver$driverEx'An exception occurred in driver: ' $driverEx->getMessage());
  7.     }
  8.     /**
  9.      * @return Exception
  10.      */
  1.                 $username,
  2.                 $password,
  3.                 $driverOptions
  4.             );
  5.         } catch (PDOException $e) {
  6.             throw Exception::driverException($this$e);
  7.         }
  8.         return $conn;
  9.     }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.         }
  2.         // If not connected, we need to connect now to determine the platform version.
  3.         if ($this->_conn === null) {
  4.             try {
  5.                 $this->connect();
  6.             } catch (Throwable $originalException) {
  7.                 if (empty($this->params['dbname'])) {
  8.                     throw $originalException;
  9.                 }
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php -> getDatabasePlatformVersion (line 437)
  1.      *
  2.      * @throws Exception If an invalid platform was specified for this connection.
  3.      */
  4.     private function detectDatabasePlatform(): AbstractPlatform
  5.     {
  6.         $version $this->getDatabasePlatformVersion();
  7.         if ($version !== null) {
  8.             assert($this->_driver instanceof VersionAwarePlatformDriver);
  9.             return $this->_driver->createDatabasePlatformForVersion($version);
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php -> detectDatabasePlatform (line 379)
  1.      * @throws Exception
  2.      */
  3.     public function getDatabasePlatform()
  4.     {
  5.         if ($this->platform === null) {
  6.             $this->platform $this->detectDatabasePlatform();
  7.             $this->platform->setEventManager($this->_eventManager);
  8.         }
  9.         return $this->platform;
  10.     }
in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php -> getDatabasePlatform (line 766)
  1.     {
  2.         ksort($this->_hints);
  3.         $platform $this->getEntityManager()
  4.             ->getConnection()
  5.             ->getDatabasePlatform()
  6.             ->getName();
  7.         return md5(
  8.             $this->getDQL() . serialize($this->_hints) .
  9.             '&platform=' $platform .
in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php -> _getQueryCacheId (line 274)
  1.             $this->_parserResult $parser->parse();
  2.             return $this->_parserResult;
  3.         }
  4.         $hash   $this->_getQueryCacheId();
  5.         $cached $this->_expireQueryCache false $queryCache->fetch($hash);
  6.         if ($cached instanceof ParserResult) {
  7.             // Cache hit.
  8.             $this->_parserResult $cached;
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     protected function _doExecute()
  5.     {
  6.         $executor $this->_parse()->getSqlExecutor();
  7.         if ($this->_queryCacheProfile) {
  8.             $executor->setQueryCacheProfile($this->_queryCacheProfile);
  9.         } else {
  10.             $executor->removeQueryCacheProfile();
  1.                 $cache->save($cacheKey$result$queryCacheProfile->getLifetime());
  2.             };
  3.         }
  4.         $stmt $this->_doExecute();
  5.         if (is_numeric($stmt)) {
  6.             $setCacheEntry($stmt);
  7.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php -> executeIgnoreQueryCache (line 954)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function getResult($hydrationMode self::HYDRATE_OBJECT)
  5.     {
  6.         return $this->execute(null$hydrationMode);
  7.     }
  8.     /**
  9.      * Gets the array of results for the query.
  10.      *
AbstractQuery->getResult() in src/Repository/UserRepository.php (line 435)
  1.             ->andWhere('u.roles LIKE :role')
  2.             ->setParameter('role''%"' 'ROLE_COACH' '"%')
  3.             ->andWhere('u.isValidByAdmin = 1')
  4.             ->distinct()
  5.             ->getQuery()
  6.             ->getResult()
  7.             ;
  8.     }
  9.     public function findValidCoachById($value)
  10.     {
UserRepository->findValidCoachByUsername('Karmi', 'Issam') in src/Controller/HomeController.php (line 262)
  1.         $second $aNames[1];
  2.         if(sizeof($aNames)>2){
  3.             $second .= '-'.$aNames[2];
  4.         }
  5.         $coachFound $entityManager->getRepository(User::class)->findValidCoachByUsername($first,$second);
  6.         /* Find Coach using id */
  7.         if(empty($coachFound)){
  8.             $coachFound $entityManager->getRepository(User::class)->findValidCoachById($id);
  9.         }
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in public/index.php (line 25)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

  1.  */
  2. final class Exception extends PDOException
  3. {
  4.     public static function new(\PDOException $exception): self
  5.     {
  6.         return new self($exception);
  7.     }
  8. }
  1.         try {
  2.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  3.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  4.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.     }
  9.     /**
  10.      * {@inheritdoc}
  1.         try {
  2.             $conn = new PDO\Connection(
  3.                 $this->constructPdoDsn($params),
  4.                 $username,
  5.                 $password,
  6.                 $driverOptions
  7.             );
  8.         } catch (PDOException $e) {
  9.             throw Exception::driverException($this$e);
  10.         }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.         }
  2.         // If not connected, we need to connect now to determine the platform version.
  3.         if ($this->_conn === null) {
  4.             try {
  5.                 $this->connect();
  6.             } catch (Throwable $originalException) {
  7.                 if (empty($this->params['dbname'])) {
  8.                     throw $originalException;
  9.                 }
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php -> getDatabasePlatformVersion (line 437)
  1.      *
  2.      * @throws Exception If an invalid platform was specified for this connection.
  3.      */
  4.     private function detectDatabasePlatform(): AbstractPlatform
  5.     {
  6.         $version $this->getDatabasePlatformVersion();
  7.         if ($version !== null) {
  8.             assert($this->_driver instanceof VersionAwarePlatformDriver);
  9.             return $this->_driver->createDatabasePlatformForVersion($version);
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php -> detectDatabasePlatform (line 379)
  1.      * @throws Exception
  2.      */
  3.     public function getDatabasePlatform()
  4.     {
  5.         if ($this->platform === null) {
  6.             $this->platform $this->detectDatabasePlatform();
  7.             $this->platform->setEventManager($this->_eventManager);
  8.         }
  9.         return $this->platform;
  10.     }
in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php -> getDatabasePlatform (line 766)
  1.     {
  2.         ksort($this->_hints);
  3.         $platform $this->getEntityManager()
  4.             ->getConnection()
  5.             ->getDatabasePlatform()
  6.             ->getName();
  7.         return md5(
  8.             $this->getDQL() . serialize($this->_hints) .
  9.             '&platform=' $platform .
in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php -> _getQueryCacheId (line 274)
  1.             $this->_parserResult $parser->parse();
  2.             return $this->_parserResult;
  3.         }
  4.         $hash   $this->_getQueryCacheId();
  5.         $cached $this->_expireQueryCache false $queryCache->fetch($hash);
  6.         if ($cached instanceof ParserResult) {
  7.             // Cache hit.
  8.             $this->_parserResult $cached;
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     protected function _doExecute()
  5.     {
  6.         $executor $this->_parse()->getSqlExecutor();
  7.         if ($this->_queryCacheProfile) {
  8.             $executor->setQueryCacheProfile($this->_queryCacheProfile);
  9.         } else {
  10.             $executor->removeQueryCacheProfile();
  1.                 $cache->save($cacheKey$result$queryCacheProfile->getLifetime());
  2.             };
  3.         }
  4.         $stmt $this->_doExecute();
  5.         if (is_numeric($stmt)) {
  6.             $setCacheEntry($stmt);
  7.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php -> executeIgnoreQueryCache (line 954)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function getResult($hydrationMode self::HYDRATE_OBJECT)
  5.     {
  6.         return $this->execute(null$hydrationMode);
  7.     }
  8.     /**
  9.      * Gets the array of results for the query.
  10.      *
AbstractQuery->getResult() in src/Repository/UserRepository.php (line 435)
  1.             ->andWhere('u.roles LIKE :role')
  2.             ->setParameter('role''%"' 'ROLE_COACH' '"%')
  3.             ->andWhere('u.isValidByAdmin = 1')
  4.             ->distinct()
  5.             ->getQuery()
  6.             ->getResult()
  7.             ;
  8.     }
  9.     public function findValidCoachById($value)
  10.     {
UserRepository->findValidCoachByUsername('Karmi', 'Issam') in src/Controller/HomeController.php (line 262)
  1.         $second $aNames[1];
  2.         if(sizeof($aNames)>2){
  3.             $second .= '-'.$aNames[2];
  4.         }
  5.         $coachFound $entityManager->getRepository(User::class)->findValidCoachByUsername($first,$second);
  6.         /* Find Coach using id */
  7.         if(empty($coachFound)){
  8.             $coachFound $entityManager->getRepository(User::class)->findValidCoachById($id);
  9.         }
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in public/index.php (line 25)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

PDOException

SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (PDOException $exception) {
  10.             throw Exception::new($exception);
  11.         }
  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (PDOException $exception) {
  10.             throw Exception::new($exception);
  11.         }
  1.         try {
  2.             $conn = new PDO\Connection(
  3.                 $this->constructPdoDsn($params),
  4.                 $username,
  5.                 $password,
  6.                 $driverOptions
  7.             );
  8.         } catch (PDOException $e) {
  9.             throw Exception::driverException($this$e);
  10.         }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.         }
  2.         // If not connected, we need to connect now to determine the platform version.
  3.         if ($this->_conn === null) {
  4.             try {
  5.                 $this->connect();
  6.             } catch (Throwable $originalException) {
  7.                 if (empty($this->params['dbname'])) {
  8.                     throw $originalException;
  9.                 }
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php -> getDatabasePlatformVersion (line 437)
  1.      *
  2.      * @throws Exception If an invalid platform was specified for this connection.
  3.      */
  4.     private function detectDatabasePlatform(): AbstractPlatform
  5.     {
  6.         $version $this->getDatabasePlatformVersion();
  7.         if ($version !== null) {
  8.             assert($this->_driver instanceof VersionAwarePlatformDriver);
  9.             return $this->_driver->createDatabasePlatformForVersion($version);
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php -> detectDatabasePlatform (line 379)
  1.      * @throws Exception
  2.      */
  3.     public function getDatabasePlatform()
  4.     {
  5.         if ($this->platform === null) {
  6.             $this->platform $this->detectDatabasePlatform();
  7.             $this->platform->setEventManager($this->_eventManager);
  8.         }
  9.         return $this->platform;
  10.     }
in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php -> getDatabasePlatform (line 766)
  1.     {
  2.         ksort($this->_hints);
  3.         $platform $this->getEntityManager()
  4.             ->getConnection()
  5.             ->getDatabasePlatform()
  6.             ->getName();
  7.         return md5(
  8.             $this->getDQL() . serialize($this->_hints) .
  9.             '&platform=' $platform .
in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php -> _getQueryCacheId (line 274)
  1.             $this->_parserResult $parser->parse();
  2.             return $this->_parserResult;
  3.         }
  4.         $hash   $this->_getQueryCacheId();
  5.         $cached $this->_expireQueryCache false $queryCache->fetch($hash);
  6.         if ($cached instanceof ParserResult) {
  7.             // Cache hit.
  8.             $this->_parserResult $cached;
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     protected function _doExecute()
  5.     {
  6.         $executor $this->_parse()->getSqlExecutor();
  7.         if ($this->_queryCacheProfile) {
  8.             $executor->setQueryCacheProfile($this->_queryCacheProfile);
  9.         } else {
  10.             $executor->removeQueryCacheProfile();
  1.                 $cache->save($cacheKey$result$queryCacheProfile->getLifetime());
  2.             };
  3.         }
  4.         $stmt $this->_doExecute();
  5.         if (is_numeric($stmt)) {
  6.             $setCacheEntry($stmt);
  7.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php -> executeIgnoreQueryCache (line 954)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function getResult($hydrationMode self::HYDRATE_OBJECT)
  5.     {
  6.         return $this->execute(null$hydrationMode);
  7.     }
  8.     /**
  9.      * Gets the array of results for the query.
  10.      *
AbstractQuery->getResult() in src/Repository/UserRepository.php (line 435)
  1.             ->andWhere('u.roles LIKE :role')
  2.             ->setParameter('role''%"' 'ROLE_COACH' '"%')
  3.             ->andWhere('u.isValidByAdmin = 1')
  4.             ->distinct()
  5.             ->getQuery()
  6.             ->getResult()
  7.             ;
  8.     }
  9.     public function findValidCoachById($value)
  10.     {
UserRepository->findValidCoachByUsername('Karmi', 'Issam') in src/Controller/HomeController.php (line 262)
  1.         $second $aNames[1];
  2.         if(sizeof($aNames)>2){
  3.             $second .= '-'.$aNames[2];
  4.         }
  5.         $coachFound $entityManager->getRepository(User::class)->findValidCoachByUsername($first,$second);
  6.         /* Find Coach using id */
  7.         if(empty($coachFound)){
  8.             $coachFound $entityManager->getRepository(User::class)->findValidCoachById($id);
  9.         }
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in public/index.php (line 25)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Traces 3

[3/3] DriverException

Doctrine\DBAL\Exception\DriverException:
An exception occurred in driver: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:128
  at Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception occurred in driver: SQLSTATE[HY000] [1698] Access denied for user \'root\'@\'localhost\'', object(Exception))
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:182)
  at Doctrine\DBAL\DBALException::wrapException(object(Driver), object(Exception), 'An exception occurred in driver: SQLSTATE[HY000] [1698] Access denied for user \'root\'@\'localhost\'')
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:169)
  at Doctrine\DBAL\DBALException::driverException(object(Driver), object(Exception))
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:31)
  at Doctrine\DBAL\Driver\PDOMySql\Driver->connect(array('url' => 'mysql://root:@127.0.0.1:3306/iworkout', 'charset' => 'utf8mb4', 'host' => '127.0.0.1', 'port' => 3306, 'user' => 'root', 'password' => '', 'driver' => 'pdo_mysql', 'driverOptions' => array(), 'defaultTableOptions' => array('collate' => 'utf8mb4_unicode_ci'), 'dbname' => 'iworkout'), 'root', '', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:412)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:475)
  at Doctrine\DBAL\Connection->getDatabasePlatformVersion()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:437)
  at Doctrine\DBAL\Connection->detectDatabasePlatform()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:379)
  at Doctrine\DBAL\Connection->getDatabasePlatform()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:766)
  at Doctrine\ORM\Query->_getQueryCacheId()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:274)
  at Doctrine\ORM\Query->_parse()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:299)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1000)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:757)
  at Doctrine\ORM\AbstractQuery->getResult()
     (src/Repository/UserRepository.php:435)
  at App\Repository\UserRepository->findValidCoachByUsername('Karmi', 'Issam')
     (src/Controller/HomeController.php:262)
  at App\Controller\HomeController->coach('Karmi-Issam')
     (vendor/symfony/http-kernel/HttpKernel.php:169)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:81)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:25)                

[2/3] Exception

Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
  at Doctrine\DBAL\Driver\PDO\Exception::new(object(PDOException))
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:44)
  at Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=127.0.0.1;port=3306;dbname=iworkout;charset=utf8mb4;', 'root', '', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:28)
  at Doctrine\DBAL\Driver\PDOMySql\Driver->connect(array('url' => 'mysql://root:@127.0.0.1:3306/iworkout', 'charset' => 'utf8mb4', 'host' => '127.0.0.1', 'port' => 3306, 'user' => 'root', 'password' => '', 'driver' => 'pdo_mysql', 'driverOptions' => array(), 'defaultTableOptions' => array('collate' => 'utf8mb4_unicode_ci'), 'dbname' => 'iworkout'), 'root', '', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:412)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:475)
  at Doctrine\DBAL\Connection->getDatabasePlatformVersion()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:437)
  at Doctrine\DBAL\Connection->detectDatabasePlatform()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:379)
  at Doctrine\DBAL\Connection->getDatabasePlatform()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:766)
  at Doctrine\ORM\Query->_getQueryCacheId()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:274)
  at Doctrine\ORM\Query->_parse()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:299)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1000)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:757)
  at Doctrine\ORM\AbstractQuery->getResult()
     (src/Repository/UserRepository.php:435)
  at App\Repository\UserRepository->findValidCoachByUsername('Karmi', 'Issam')
     (src/Controller/HomeController.php:262)
  at App\Controller\HomeController->coach('Karmi-Issam')
     (vendor/symfony/http-kernel/HttpKernel.php:169)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:81)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:25)                

[1/3] PDOException

PDOException:
SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40
  at PDO->__construct('mysql:host=127.0.0.1;port=3306;dbname=iworkout;charset=utf8mb4;', 'root', '', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40)
  at Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=127.0.0.1;port=3306;dbname=iworkout;charset=utf8mb4;', 'root', '', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:28)
  at Doctrine\DBAL\Driver\PDOMySql\Driver->connect(array('url' => 'mysql://root:@127.0.0.1:3306/iworkout', 'charset' => 'utf8mb4', 'host' => '127.0.0.1', 'port' => 3306, 'user' => 'root', 'password' => '', 'driver' => 'pdo_mysql', 'driverOptions' => array(), 'defaultTableOptions' => array('collate' => 'utf8mb4_unicode_ci'), 'dbname' => 'iworkout'), 'root', '', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:412)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:475)
  at Doctrine\DBAL\Connection->getDatabasePlatformVersion()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:437)
  at Doctrine\DBAL\Connection->detectDatabasePlatform()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:379)
  at Doctrine\DBAL\Connection->getDatabasePlatform()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:766)
  at Doctrine\ORM\Query->_getQueryCacheId()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:274)
  at Doctrine\ORM\Query->_parse()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:299)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1000)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:757)
  at Doctrine\ORM\AbstractQuery->getResult()
     (src/Repository/UserRepository.php:435)
  at App\Repository\UserRepository->findValidCoachByUsername('Karmi', 'Issam')
     (src/Controller/HomeController.php:262)
  at App\Controller\HomeController->coach('Karmi-Issam')
     (vendor/symfony/http-kernel/HttpKernel.php:169)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:81)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:25)