MusheAbdulHakim / Laravel-Smarthr

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

Facing Bug while migrating db #14

Closed Fatima-hub333 closed 1 year ago

Fatima-hub333 commented 1 year 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 1 year 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 1 year 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