Can't seed i want to run seed to get this database project video-website-master

unfortunately while i seed the database to get database this below error will occur i don't know that is why it says error is in here htdocs\video-website-mas...

unfortunately while i seed the database to get database this below error will occur i don't know that is why it says error is in here
htdocs\video-website-master\vendor\laravel\framework\src\Illuminate\Database\Connectors.Connector.php line 70

how to solve it please

in other way can you extract the database

C:\xampp\htdocs\video-website-master>php artisan db:seed
**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:
 > yes


   Illuminate\Database\QueryException  : SQLSTATE[HY000] [1045] Access denied fo
r user 'forge'@'localhost' (using password: NO) (SQL: select * from information_
schema.tables where table_schema = forge and table_name = migrations and table_t
ype = 'BASE TABLE')

  at C:\xampp\htdocs\video-website-master\vendor\laravel\framework\src\Illuminat
e\Database\Connection.php:664
    660|         // If an exception occurs when attempting to run a query, we'll
 format the error
    661|         // message to include the bindings with SQL, which will make th
is exception a
    662|         // lot more helpful to the developer instead of just the databa
se's errors.
    663|         catch (Exception $e) {
  > 664|             throw new QueryException(
    665|                 $query, $this->prepareBindings($bindings), $e
    666|             );
    667|         }
    668|

  Exception trace:

  1   PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'forge'@'loc
alhost' (using password: NO)")
      C:\xampp\htdocs\video-website-master\vendor\laravel\framework\src\Illumina
te\Database\Connectors\Connector.php:70

  2   PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=forge", "forge", "
", [])
      C:\xampp\htdocs\video-website-master\vendor\laravel\framework\src\Illumina
te\Database\Connectors\Connector.php:70

  Please use the argument -v to see more details.




it is line 70 code in connector.php


 protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }

        return new PDO($dsn, $username, $password, $options);
    }

0 التعليقات


    لا يوجد تعليقات حتي الان

اضف تعليق


يجب ان يكون لديك حساب في الموقع تسجيل الدخول او تسجيل عضوية جديدة

خدمات ويب الفريق