安装时出现的问题 mysql5.6

composer create-project phpdish/phpdish 形式安装

Careful, database will be purged. Do you want to continue y/N ?y

purging database

In AbstractMySQLDriver.php line 61:

An exception occurred while executing 'DELETE FROM point_histories':

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'demo.point_ histories' doesn't exist

In PDOConnection.php line 62:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'demo.point_ histories' doesn't exist

In PDOConnection.php line 60:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'demo.point_ histories' doesn't exist

doctrine:fixtures:load [--fixtures [FIXTURES]] [--append] [--em EM] [--shard SHARD] [--purge-with-truncate] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--]

Step 4 of 4. Creats the super admin acount.

Please choose a username:demo Please choose an email:quittt89@163.com Please choose a password:

In ORMException.php line 144:

The EntityManager is closed.

fos:user:create [--super-admin] [--inactive] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--]

PHPDish has been successfully installed. [root@xiaoshikong phpdish]#

5 回复
  • slince 3月前

    composer create-project phpdish/phpdish -s stable

    再试一次

  • 小时空 3月前

    尝试了还是不行

    [2018-07-16 21:16:39] console.ERROR: Error thrown while running command "doctrine:fixtures:load". Message: "An exception occurred while executing 'DELETE FROM payments': SQLSTATE[42S02]: Base table or view not found: 1146 Table 'demo.payments' doesn't exist" {"error":"[object] (Doctrine\DBAL\Exception\TableNotFoundException(code: 0): An exception occurred while executing 'DELETE FROM payments':\n\nSQLSTATE[42S02]: Base table or view not found: 1146 Table 'demo.payments' doesn't exist at /home/phpdish/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:61, Doctrine\DBAL\Driver\PDOException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'demo.payments' doesn't exist at /home/phpdish/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:62, PDOException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'demo.payments' doesn't exist at /home/phpdish/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:60)","command":"doctrine:fixtures:load","message":"An exception occurred while executing 'DELETE FROM payments':\n\nSQLSTATE[42S02]: Base table or view not found: 1146 Table 'demo.payments' doesn't exist"} [] [2018-07-16 21:16:39] console.DEBUG: Command "doctrine:fixtures:load" exited with code "1" {"command":"doctrine:fixtures:load","code":1} [] [2018-07-16 21:17:04] console.ERROR: Error thrown while running command "--super-admin=1 fos:user:create". Message: "The EntityManager is closed." {"error":"[object] (Doctrine\ORM\ORMException(code: 0): The EntityManager is closed. at /home/phpdish/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:144)","command":"--super-admin=1 fos:user:create","message":"The EntityManager is closed."} [] [2018-07-16 21:17:04] console.DEBUG: Command "--super-admin=1 fos:user:create" exited with code "1" {"command":"--super-admin=1 fos:user:create","code":1} []

  • slince 3月前

    @小时空 https://www.phpdish.com/videos/1 按照我这个视频操作;把你之前下载的源代码,数据库,都删了;重新来

  • @slince 我的也是这一步出错,试三遍,跟你视频走,一样不行

    In AbstractMySQLDriver.php line 61:

    An exception occurred while executing 'DELETE FROM payments':

    SQLSTATE[42S02]: Base table or view not found: 1146 Table 'app.payments' do
    esn't exist

    In PDOConnection.php line 62:

    SQLSTATE[42S02]: Base table or view not found: 1146 Table 'app.payments' do
    esn't exist

    In PDOConnection.php line 60:

    SQLSTATE[42S02]: Base table or view not found: 1146 Table 'app.payments' do
    esn't exist

  • slince 2月前

    @你的男公关。 你先删除所有的代码;把数据库也删了;不要用之前的数据库试试看

回复