嘿大家正在尝试部署我的symfony 3应用程序我在安装了do{
System.out.println("You must enter a vaild operator");
cal.set_op(); //to set operator
} while(cal.op != '+' && cal.op != '-' && cal.op != '*' && cal.op != '/' );
switch(cal.op){
case '+':
cal.result = cal.calsum();
break;
case '-':
cal.result = cal.calsub();
break;
case '*':
cal.result = cal.mult();
break;
case '/':
cal.result = cal.div();
break;
default : break; //safety check
}
System.out.println(cal.result); //try to not have SAME code written twice (or more^^)
之后上传了我在ubuntu 16.04
设置我的vps 1& 1主机的项目文件。
我试图运行命令
php , mysql , apache2
php bin/console doctrine:schema:create
首先,虽然它可能是参数问题,但后来我在我的文件[Doctrine\DBAL\Exception\DriverException]
An exception occured in driver: could not find driver
[Doctrine\DBAL\Driver\PDOException]
could not find driver
[PDOException]
could not find driver
中做了一些更改,如下面的代码:
parameters.yml
我不认为这是拼写错误导致凭据有效且当我输入This file is auto-generated during the composer install
parameters:
database_host: 127.0.0.1
database_port: 3306
database_name: kuenstlerdienste
database_user: Test
database_password: xxxxx
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
secret: 40ea1d1efb058912e7ae152d2847c9834d97faa4
authentication.handler.login_success_handler.class: KuenstlerdiensteBundle\Security\LoginSuccessHandler
时
登录后获得此结果
mysql
我还测试了我的vps上是否安装了pdo:输入mysql> Show DATABASES
-> ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| kuenstlerdienste |
+--------------------+
2 rows in set (0.00 sec)
并在结果中提及php -m
答案 0 :(得分:2)
尝试使用它来检查是否安装了模块。
php -m | grep pdo
期待的事情如下:
pdo_mysql