eraporsmk / erapor7

Aplikasi Penilaian Direktorat SMK Kemdikbudristek Republik Indonesia
http://erapor.ditpsmk.net/
25 stars 32 forks source link

Bug saat menjalankan artisan (versi commit 1cadaa7) #79

Closed h4r1m4w closed 1 month ago

h4r1m4w commented 2 months ago

Setelah melakukan update erapor 704 (commit 1cadaa7), terdapat bug saat menjalankan php artisan

Illuminate\Database\QueryException 

  SQLSTATE[HY000] [1045] Access denied for user 'forge'@'127.0.0.1' (using password: NO) (SQL: select * from `ref`.`semester` where (`periode_aktif` = 1) limit 1)

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:760
    756▕         // If an exception occurs when attempting to run a query, we'll format the error
    757▕         // message to include the bindings with SQL, which will make this exception a
    758▕         // lot more helpful to the developer instead of just the database's errors.
    759▕         catch (Exception $e) {
  ➜ 760▕             throw new QueryException(
    761▕                 $query, $this->prepareBindings($bindings), $e
    762▕             );
    763▕         }
    764▕     }

      +20 vendor frames 
  21  app/Console/Commands/SinkronDapodik.php:78
      Illuminate\Database\Eloquent\Builder::first()

      +13 vendor frames 
  35  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
masadi commented 1 month ago

Silahkan periksa kembali koneksi databasenya di file .env