duanluan2047 2017-02-09 01:57
浏览 41

Laravel多数据库错误

All,

I am currently testing out some rather interesting software for Laravel. Backpack is a CRUD based do-it-yourself admin panel that I am fooling around with to possible integrate for a later project. I am however having some trouble filling databases correctly when I migrate. For example, I was trying to install the user permission package (the software works in blocks so you install the base then add packages) and everything goes well until I migrate into my database when it gives me an error like this:

    [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(255) not null,
  `remember_token` varchar(100) null, `created_at` timestamp null,  
  `updated_at` timestamp null) default character set utf8mb4 collate ut
  f8mb4_unicode_ci)



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



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

I know that is is saying that I already have the tables created in the database (from the base package including an authentication function) but it doesn't make sense why they would be the same because they are different packages. So I am wondering why this is happening; maybe I set something up wrong? Anything is greatly appreciated! Thanks in advance.

Backpack Github

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 计组这些题应该咋做呀
    • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
    • ¥15 让node服务器有自动加载文件的功能
    • ¥15 jmeter脚本回放有的是对的有的是错的
    • ¥15 r语言蛋白组学相关问题
    • ¥15 Python时间序列如何拟合疏系数模型
    • ¥15 求学软件的前人们指明方向🥺
    • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
    • ¥20 双层网络上信息-疾病传播
    • ¥50 paddlepaddle pinn