Laravel Base table or view already exists: 1050 Table 'users' already exists

PS D:\phpStudy\WWW\BCCAdminV1.0> php artisan migrate

[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 primary key, name varchar(255) not null, email varchar(255) not null,
password varchar(60) not null, remember_token varchar(100) null, created_at timestamp default 0 not null, up dated_at timestamp default 0 not null) default character set utf8 collate utf8_unicode_ci)

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

因为数据库是边写代码边创建边修改的,然后增加了一个表,再次运行migrate就不行了,有的资料说要把之前的完全删掉,那就太坑爹了,我之前已经有很多数据了。
然后自己摸索想到了办法,在写的另外一篇文章里面:

Laravel 创建指定表 migrate

http://blog.csdn.net/zhezhebie/article/details/78657369

你可能感兴趣的:(laravel,框架,php,数据库)