【发布时间】:2017-02-20 09:56:23
【问题描述】:
我想把我的 symfony3 代码托管,毕竟我得到了
哎呀!发生错误
服务器返回“500 内部服务器错误”。
有些东西坏了。请让我们知道您在此期间在做什么 错误发生。我们会尽快修复它。对不起任何 造成的不便。
我的参数.yml
# 这个文件是 composer install 时自动生成的
参数:
database_host: db.if.ktu.lt
database_port: null
database_name: lukmil
database_user: lukmil
database_password: "MyPassword"
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: ~
mailer_password: ~
secret: ThisTokenIsNotSoSecretChangeIt
这就是我从产品日志中得到的
[2016-10-11 18:18:40] request.INFO:匹配路由“{route}”。 {"route":"authentication_register","route_parameters":{"_controller":"AppBundle\Controller\DefaultController::indexAction","_route":"authentication_register"},"request_uri":"http://lukmil.stud.if.ktu.lt/register","method “:“得到”} [] [2016-10-11 18:18:40] security.INFO:填充了 TokenStorage 带有匿名令牌。 [] [] [2016-10-11 18:18:40] 请求。关键: 未捕获的 PHP 异常 Doctrine\DBAL\Exception\ConnectionException: “驱动程序中发生异常:SQLSTATE [28000] [1045] 访问被拒绝 对于用户'root'@'stud.if.ktu.lt'(使用密码:NO)”在 /home/lukmil/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php 第 103 行 {“异常”:“[对象] (Doctrine\DBAL\Exception\ConnectionException(代码:0):异常 发生在驱动程序中:SQLSTATE [28000] [1045] 用户访问被拒绝 'root'@'stud.if.ktu.lt'(使用密码:NO)在 /home/lukmil/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:103, Doctrine\DBAL\Driver\PDOException(代码:1045):SQLSTATE[28000] [1045] 用户 'root'@'stud.if.ktu.lt' 的访问被拒绝(使用密码: 否)在 /home/lukmil/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:47, PDOException(代码:1045):SQLSTATE [28000] [1045] 拒绝访问 用户'root'@'stud.if.ktu.lt'(使用密码:NO) /home/lukmil/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43)"} []
我能做什么? 在本地主机上它工作..只是在托管不
【问题讨论】:
-
永远不要共享密码。我编辑了两次隐藏密码
标签: php doctrine-orm symfony-3.1