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 Base table or view already exists: 1050 Table 'users' already exists相关推荐

  1. laravel-admin 出现SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘users‘ already exist

    安装laravel-admin,执行 php artisan admin:install出现 : Illuminate\Database\QueryException : SQLSTATE[42S01 ...

  2. laravel-admin Base table or view not found: 1146 Table ‘hyzt.brands‘ doesn‘t exist (SQL: select coun

    错误:Base table or view not found: 1146 Table 'hyzt.brands' doesn't exist (SQL: select count(*) as agg ...

  3. SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog.user' doesn't exist (SQL: select * f

    PHP 主流框架 laravel  可能在使用时会出现一些小问题: 比如:SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog ...

  4. php artisan migrate error: Laravel Base table or view already exists: 1050 Table

    composer dump-autoload -o php artisan migrate php artisan migrate:reset

  5. django.db.utils.OperationalError: (1050, “Table ‘表名‘ already exists)解决方法

    django.db.utils.OperationalError: (1050, "Table '表名' already exists)解决方法 参考文章: (1)django.db.uti ...

  6. MySQL之建表时[Err] 1050 - Table ‘users‘ already exists异常解决方法

    当执行MySQL新建表格table时: 例如: create table students( uid int not null auto_increment, uname varchar(30) no ...

  7. django.db.utils.OperationalError: (1050, Table 'xxx' already exists)

    django.db.utils.OperationalError: (1050, "Table 'xxx' already exists") 今天迁移数据过程中发生的报错,经各种百 ...

  8. MySQL出现[Err] 1050 - Table 't_active' already exists异常

    MySQL 在新增表格时 create table  t_active (    ActiveId             int not null auto_increment,    Active ...

  9. 【吭】Django数据库迁移问题1050, “Table ‘JiraCase‘ already exists

    数据库表已生成,但是不小心误删了对应的注册文件,导致每次要继续注册新的数据库时,都会把已存在的表进行重新注册,造成迁移数据库时报错该表已存在 错误提示: django.db.utils.Operati ...

最新文章

  1. 2022-2028年中国激光切管机行业市场研究及前瞻分析报告
  2. Android多媒体扫描过程(Android Media Scanner Prosess)
  3. 使用命令创建mysql_用命令创建MySQL数据库
  4. CommonJS/AMD/CMD/UMD
  5. 关于 There is no getter for property named ‘id‘ in ‘class java.lang.Integer‘
  6. 华为主题包hwt下载_华为主题 | 黑白人物
  7. 创业公司是如何进行研发管理和绩效考核的?
  8. matlab vec2ind,MATLAB函数ind2vec的作用
  9. (没用,只是学习贴,可能永不会更新)Js 写《智慧树》自动评论脚本
  10. 利用OA系统更便捷地查询员工工资
  11. linux u盘 修复工具,在Linux终端中修复U盘驱动器问题
  12. 磁珠的串联和并联分析:
  13. Angular基本概念及用法总结
  14. 【培训实验记录】锐捷SDN交换机和控制器部署
  15. 红旗2000陷造假门 国产软件想说爱你不容易
  16. linux adsl实现原理,ADSL原理以及ADSL系统组成简介
  17. 斯巴拓压力传感器变送器安装方法及使用注意事项
  18. Linux下飞鸽传书项目设计书,linux下基于ipmsg协议的飞鸽传书(一)
  19. flex布局之多行多列
  20. CSS中常用的几种定位方式

热门文章

  1. Linux-快速配置网络
  2. 220g格斗机器人建造日志(1) —— 结构和硬件设计
  3. 火锅火锅和火锅——中国大学MOOC
  4. 【华为校招】【校招】【Java】欢乐周末(DFS)
  5. C语言编程之递归求阶乘
  6. SQL ------ 查询练习2
  7. 基于优选策略的自适应蚁狮优化算法
  8. 基于柯西变异的蚁狮优化算法 - 附代码
  9. 如何找回U盘清理了的文件
  10. 卧槽!Intellij IDEA中竟然还有这么多炫酷的插件,玩儿一波!