作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我安装了 symfony-standard edition。在与 parameters.yml 进行了一些斗争之后取得了进展...... database_driver 被设置为 pdo_mysqln 并且运行继续但是在不同的 php 文件中出现了 6 次相同的错误。并且错误是:
与后端通信发生意外错误:执行 'SELECT 1 FROM phpcr_workspaces WHERE name = ?' 时发生异常带参数 ["default"]:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sf_sandbox.phpcr_workspaces' doesn't exist
有什么想法吗?
最佳答案
您必须使用当前架构信息更新您的数据库,其中包括在数据库中创建表:
# show the SQL commands to be applied (if you want to execute them yourself)
app/console doctrine:schema:update --force --dump-sql
# have Symfony apply the SQL commands
app/console doctrine:schema:update --force --complete
关于php - SQLSTATE[42S02] : Base table or view not found: 1146 Table 'sf_sandbox.phpcr_workspaces' doesn't exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33608582/
我安装了 symfony-standard edition。在与 parameters.yml 进行了一些斗争之后取得了进展...... database_driver 被设置为 pdo_mysqln
我是一名优秀的程序员,十分优秀!