Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

当我运行php artisan migrate --seed的时候出现了问题 #35

Closed
hyrbridword opened this issue Nov 3, 2016 · 5 comments
Closed

Comments

@hyrbridword
Copy link

php artisan est:init-rbac

                                                                               
  [Illuminate\Database\QueryException]                                         
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'phphub5.users' d  
  oesn't exist (SQL: select * from `users` where `users`.`deleted_at` is null  
   limit 1)                                                                    
                                                                               

                                                                               
  [PDOException]                                                               
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'phphub5.users' d  
  oesn't exist    
@shensk
Copy link

shensk commented Nov 10, 2016

[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table revisions add index revisions_revisionable_ id_revisionable_type_index(revisionable_id, revisionable_type))

@itbaobao
Copy link

没人管?

@yczo
Copy link

yczo commented Nov 15, 2016

@ChenPHPER 我的问题跟你一样 我是这么解决的

我把虚拟机里面执行 php artisan est:install 这一句
换成了下面这三句
php artisan key:generate
php artisan migrate --seed --env=development
php artisan est:init-rbac
然后成功装上了

@shensk @itbaobao

@shensk
Copy link

shensk commented Nov 16, 2016

我用mysql5.7解决了

@summerblue
Copy link
Owner

运行环境:
Nginx 1.8+
PHP 5.6+
Mysql 5.7+
Redis 3.0+
Memcached 1.4+

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants