我对Symfony 4和数据库连接有问题。我试图使用php bin/console make:migration进行迁移,但随后我面临连接被拒绝的错误。
In AbstractMySQLDriver.php line 113:
An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused
In PDOConnection.php line 50:
SQLSTATE[HY000] [2002] Connection refused
In PDOConnection.php line
我遇到了一个关于制作Docker容器镜像的问题,它包含Symfony基础应用程序。我可以毫无问题地安装php扩展(mcrypt,pdo_mysql等),但是我不能通过Composer安装依赖项。
所以..。我有,我有与缓存和形成文件autoload.php相关的问题。我不明白为什么,但它尝试连接数据库。我假设是这样的,因为我得到了以下消息:
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated wi
你好,当我使用php bin/console doctrine:migrations:migrate时,我有以下错误:
In ExceptionConverter.php line 103:
An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused
In Exception.php line 30:
SQLSTATE[HY000] [2002] Connection refused
In Driver.php line 28:
SQLSTATE[HY000] [20
嗨,我安装了像这样的Shopware开发者项目,它工作得很好,但是我不能登录到数据库。如果我尝试./psh.phar管理:watch或./psh.phar管理:构建->,则会出错。
In AbstractMySQLDriver.php line 93:
An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddr
esses: getaddrinfo failed: nodename nor servname provided, or not known
In PDOC
对于我的部署,我遇到了这个错误SQLSTATE HY000连接被拒绝(SQL: select * from insurances order by created_at desc)。我尝试了本教程https://groups.google.com/g/google-appengine/c/3EYhmYBbsjg中的建议,将角色分配给服务。我为服务云提供了SQL管理员和编辑角色。但仍然存在同样的问题。我有这个错误: SQLSTATE[HY000] [2002] Connection refused(SQL: select * from `insurances` order by `create
我随机收到服务器错误,因为Laravel正在尝试连接到生产数据库,尽管我设置了一个.env文件,并且大部分时间它都连接到正确的数据库。
下面是我收到的错误:
[2018-02-17 08:05:54] production.ERROR: SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select * from information_schema.tables where table_schema = forge and t
我在64位的CentOS 6.x上安装了一个asterisk服务器,一切正常,但是一周后当我回来的时候,我就无法访问网页管理区了。
这是错误:
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)::SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock&
我刚刚在symfony 5中发送了我的项目到主机上,我有错误: An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known 或者如果我想执行: php74-cli bin/console make:migration
In AbstractMySQLDriver.php line 112:
An exception occurred in driver: SQLSTATE[HY000] [2
Symfony连接数据库(和php容器),但当我运行phpunit时,返回错误SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known。我的项目中哪里有错误?
在我的projekt docker-compose.yml文件中,如下所示:
services:
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSW
日安,
我使用Kubernetes在google容器引擎上运行容器。
这个想法是在一个吊舱里运行两个容器。一个容器使用docker映像,另一个容器运行php、laravel、nginx和composer。
在当地,这是可行的。其思想是,php可以连接到localhost上的数据库,如果两个容器位于同一个容器中,则应该可以这样做。但是,当吊舱启动时,我们在日志中看到以下消息:
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock&