douduan4116 2015-11-09 11:57
浏览 813

SQLSTATE [42S02]:找不到基表或视图:1146表'sf_sandbox.phpcr_workspaces'不存在

I installed symfony-standard edition.After some struggle with parameters.yml there was progress... the database_driver was set to pdo_mysqln and the running proceeded however there were 6 occurences of the same error in different php files .and the error was:

Unexpected error talking to the backend: An exception occurred while executing 'SELECT 1 FROM phpcr_workspaces WHERE name = ?' with params ["default"]:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sf_sandbox.phpcr_workspaces' doesn't exist

any ideas?

  • 写回答

1条回答 默认 最新

  • dongzhenge2014 2015-11-09 13:46
    关注

    You must update your database with the current schema information, which includes creating the tables in the database:

    # 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
    
    评论

报告相同问题?

悬赏问题

  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效