2017-07-03 40 views
0

我有問題,因爲我沒有創建數據庫無法創建數據庫`symfony`連接名爲default

我parameters.yml

parameters: 
    database_host: 127.0.0.1 
    database_port: null 
    database_name: symfony 
    database_user: root 
    database_password: null 
    mailer_transport: smtp 
    mailer_host: 127.0.0.1 
    mailer_user: null 
    mailer_password: null 
    secret: ThisTokenIsNotSoSecretChangeIt 

請幫助我:)

回答

3

您需要啓動您的Mysql服務,並檢查apche服務是否列出到127.0.0.1。
然後只需打開你的CLI,然後鍵入:

php bin/console doctrine:database:drop --force 
php bin/console doctrine:database:create 
php bin/console doctrine:schema:update --force