Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database error #1

Open
labschool opened this issue Nov 14, 2018 · 3 comments
Open

Database error #1

labschool opened this issue Nov 14, 2018 · 3 comments

Comments

@labschool
Copy link

C:\xampp\htdocs\payroll>php artisan db:seed

Seeding: UsersTableSeeder

In Connection.php line 664:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'payroll.departments' doesn't exist (SQL: insert into de partments (name, slug, updated_at, created_at) values (dicta, dicta, 2018-11-14 22:51:48, 2018-11-14 22:51
:48))

In Connection.php line 452:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'payroll.departments' doesn't exist

Why;

@Donstesh
Copy link

how did you create your database?

@Donstesh
Copy link

use with xampp its easier

  1. Install Xampp
  2. http://localhost/phpmyadmin/
  3. Create new database example payroll_db
  4. edit .env file
  5. migrate
  6. seed
  7. php artisan key:generate
  8. php artisan config:clear

@Donstesh
Copy link

if you are using linux make sure you migrate using root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants