Wednesday, March 8, 2017

PHP Artisan migrate fails

I have just installed a fresh Laravel 5.4 project.

As i'm following Jeffrey Way's Laravel from scratch tutorial i get the following errors when i want to migrate my database:

  [Illuminate\Database\QueryException]
  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already
  exists (SQL: create table `users` (`id` int unsigned not null auto_increment pr
  imary key, `name` varchar(255) not null, `email` varchar(255) not null, `passwo
  rd` varchar(255) not null, `remember_token` varchar(100) null, `created_at` tim
  estamp null, `updated_at` timestamp null) default character set utf8mb4 collate
  utf8mb4_unicode_ci)

-

[PDOException]
  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already
  exists

Like i said, it's a fresh installation and i don't know how to fix this. Does anyone of you know?

Thanks in advance!



via itvba

Advertisement