Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 2 years ago.
0

it means that table already exists in the db. are you running a migration ?

0

Thanks for the answer, I'm trying to run a migration, as shown in the Basic Tasks List: https://laravel.com/docs/5.1/quickstart.

mysql> create database forge; Query OK, 1 row affected (0.00 sec)

mysql> Bye [root@localhost project]# php artisan migrate


  • Application In Production!     *
    

Do you really wish to run this command? yes Migration table created successfully.

[Illuminate\Database\QueryException] SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'tasks' alre ady exists (SQL: create table tasks (id int unsigned not null auto_incr ement primary key, name varchar(255) not null, created_at timestamp def ault 0 not null, updated_at timestamp default 0 not null) default charact er set utf8 collate utf8_unicode_ci)

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

migrate [--bench [BENCH]] [--database [DATABASE]] [--force] [--path [PATH]] [--package [PACKAGE]] [--pretend] [--seed]

Hope this helps

0

Sign in to participate in this thread!

Eventy

Your banner here too?

bfentiman bfentiman Joined 30 Nov 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.