php删除所有的缓存数据库,php – Symfony 2.7缓存:清除命令检查每个数据库连接...

在尝试连接数据库时发生异常,详细错误信息显示为SQLSTATE[42000][1049],表明无法找到名为'bal_syncro_database'的数据库。该问题可能涉及到数据库配置、连接参数或者数据库本身不存在。在进一步排查中,需要检查数据库名称的拼写、数据库服务器的设置以及 Doctrine 的配置文件。
摘要由CSDN通过智能技术生成

[Doctrine\DBAL\Exception\ConnectionException]

An exception occured in driver: SQLSTATE[42000] [1049] Unknown

database ‘bal_syncrho_database’

Exception trace: () at

/var/www/ror3/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:103

Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException() at

/var/www/ror3/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:133

Doctrine\DBAL\DBALException::driverException() at

/var/www/ror3/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:47

Doctrine\DBAL\Driver\PDOMySql\Driver->connect() at

/var/www/ror3/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:360

Doctrine\DBAL\Connection->connect() at

/var/www/ror3/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:429

Doctrine\DBAL\Connection->getDatabasePlatformVersion() at

/var/www/ror3/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:389

Doctrine\DBAL\Connection->detectDatabasePlatform() at

/var/www/ror3/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:328

Doctrine\DBAL\Connection->getDatabasePlatform() at

/var/www/ror3/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:763

Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform() at

/var/www/ror3/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:616

Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping()

at

/var/www/ror3/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:174

Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata() at

/var/www/ror3/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php:332

Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata()

at

/var/www/ror3/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:78

Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata() at

/var/www/ror3/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php:216

Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor()

at

/var/www/ror3/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php:115

Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getAllMetadata()

at

/var/www/ror3/vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php:69

Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer->warmUp() at

/var/www/ror3/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:48

Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp()

at /var/www/ror3/app/bootstrap.php.cache:2641

Symfony\Component\HttpKernel\Kernel->initializeContainer() at

/var/www/ror3/app/bootstrap.php.cache:2411

Symfony\Component\HttpKernel\Kernel->boot() at

/var/www/ror3/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:70

Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at

/var/www/ror3/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:120

Symfony\Component\Console\Application->run() at

/var/www/ror3/app/console:27

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值