MusheAbdulHakim / Laravel-Smarthr

A complete hr management system developed with the laravel framework.
https://smarthr.musheabdulhakim.dev
172 stars 77 forks source link

Facing Bug while migrating db #14

Closed Fatima-hub333 closed 2 years ago

Fatima-hub333 commented 2 years ago

Hi, I am facing an issue while migrating the database "php artisan migrate --seed" while running this command facing the attached below issue, kindly help me in this error, how can I resolve it? bug

MusheAbdulHakim commented 2 years ago

you have to create the database 'smarthr' before running migrations.

set the appropriate values for the following environment variables:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=smarthr
DB_USERNAME=root
DB_PASSWORD=

make sure the value for DB_DATABASE is the name of the database you created. And also set the username and password to your database.

Fatima-hub333 commented 2 years ago

you have to create the database 'smarthr' before running migrations.

set the appropriate values for the following environment variables:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=smarthr
DB_USERNAME=root
DB_PASSWORD=

make sure the value for DB_DATABASE is the name of the database you created. And also set the username and password to your database.

I did this. I create DB with the name of 'smarthr' and after that run this command