请教 PHPHub 项目本地化安装问题
@summerblue
首先非常感谢phphub.org社区。
从github clone了一份phphub,没有使用homestead,自己搭建环境安装。
可以通过github登录,其他各项功能也都正常(虽然安装过程有点曲折,因为第一次clone的时候package.json文件貌似不全),但是访问用户中心 http://www.domain.com/users/2/access_tokens
报错
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'database.oauth_sessions' doesn't exist (SQL: select
id
from oauth_sessions
where (owner_type
= user and owner_id
= 2))
自己建了一个oauth_sessions之后报
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 (SQL: select * from
oauth_access_tokens
where session_id
in ())
好像缺少了两个数据表oauth_access_tokens
oauth_sessions
推荐文章: