我不能產生與Symfony的數據庫成功throught終端不能與終端學說創建數據庫:數據庫:創建
(我用的是Mac和MAMP)
在終端線
MacBook-Pro-de-XXX:Symfony XXX$ php app/console doctrine:database:create
我在終端
得到的答覆Warning: PDO::__construct(): MySQL server has gone away in /Applications/MAMP/htdocs/Symfony/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 40
Warning: PDO::__construct(): Error while reading greeting packet. PID=52773 in /Applications/MAMP/htdocs/Symfony/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 40
Could not create database for connection named `symfony`
SQLSTATE[HY000] [2006] MySQL server has gone away
這裏的一些其他信息,可以幫助你幫我尋找到probleme來自
的parameters.yml文件中的Symfony /應用/配置
# This file is auto-generated during the composer install
parameters:
database_driver: pdo_mysql
database_host: localhost:8888
database_port: null
database_name: symfony
database_user: root
database_password: root
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
locale: en
secret: ThisTokenIsNotSoSecretChangeIt
MySQL是否聯機? – 2014-09-10 16:23:32