Web Geliştirici / Sistem Uzmanı / SEO Uzmanı / Gamer | Blog sayfam üzerinden vakit buldukça işe yarayacak notlarımı yayınlamaktayım.

The website encountered an unexpected error. Please try again later. Drupal

The website encountered an unexpected error. Please try again later.

[Wed May 30 08:17:23.280468 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] PDOException: SQLSTATE[HY000] [1130] Host ‘********’ is not allowed to connect to this MariaDB server in /home/*******/public_html/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php on line 79 #0 /home/*******/public_html/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php(142): PDO->__construct(‘mysql:host=***….’, ‘******’, ‘******’, Array)
[Wed May 30 08:17:23.280567 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #1 /home/*******/public_html/core/lib/Drupal/Core/Database/Database.php(376): Drupal\\Core\\Database\\Driver\\mysql\\Connection::open(Array)
[Wed May 30 08:17:23.280645 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #2 /home/*******/public_html/core/lib/Drupal/Core/Database/Database.php(166): Drupal\\Core\\Database\\Database::openConnection(‘default’, ‘default’)
[Wed May 30 08:17:23.280687 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #3 [internal function]: Drupal\\Core\\Database\\Database::getConnection(‘default’)
[Wed May 30 08:17:23.280779 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #4 /home/*******/public_html/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php(79): call_user_func_array(‘Drupal\\\\Core\\\\Dat…’, Array)
[Wed May 30 08:17:23.280877 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #5 /home/*******/public_html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\\Component\\DependencyInjection\\PhpArrayContainer->createService(Array, ‘database’)
[Wed May 30 08:17:23.280974 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #6 /home/*******/public_html/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php(264): Drupal\\Component\\DependencyInjection\\Container->get(‘database’, 1)
[Wed May 30 08:17:23.281077 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #7 /home/*******/public_html/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php(62): Drupal\\Component\\DependencyInjection\\PhpArrayContainer->resolveServicesAndParameters(Array)
[Wed May 30 08:17:23.281185 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #8 /home/*******/public_html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\\Component\\DependencyInjection\\PhpArrayContainer->createService(Array, ‘cache.container’)
[Wed May 30 08:17:23.281279 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #9 /home/*******/public_html/core/lib/Drupal/Core/DrupalKernel.php(508): Drupal\\Component\\DependencyInjection\\Container->get(‘cache.container’)
[Wed May 30 08:17:23.281361 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #10 /home/*******/public_html/core/lib/Drupal/Core/DrupalKernel.php(860): Drupal\\Core\\DrupalKernel->getCachedContainerDefinition()
[Wed May 30 08:17:23.281427 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #11 /home/*******/public_html/core/lib/Drupal/Core/DrupalKernel.php(461): Drupal\\Core\\DrupalKernel->initializeContainer()
[Wed May 30 08:17:23.281554 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #12 /home/*******/public_html/core/lib/Drupal/Core/DrupalKernel.php(651): Drupal\\Core\\DrupalKernel->boot()
[Wed May 30 08:17:23.281663 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #13 /home/*******/public_html/index.php(24): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))
[Wed May 30 08:17:23.281770 2018] [:error] [pid 1695:tid 139758920480512] [client *******:12303] #14 {main}

Hatası için veritabanı bilgilerinde hata olduğundan dolayı sistem hata veriyordu. Centos web panel kurulu sistemimizde localhost ve sunucu ip adresini yazdığımda ilgili hatayı almaya devam ettim. CWP web panelden sunucu ismi ve local ip adresini kontrol ettiğimde 127.0.0.1 adresi geldi aklıma.

‘prefix’ => ”,
‘host’ => ‘127.0.0.1’,
‘port’ => ‘3306’,
‘namespace’ => ‘Drupal\\Core\\Database\\Driver\\mysql’,
‘driver’ => ‘mysql’,

olarak düzenlediğim de başarılı bir şekilde sisteme girmiş oldum.

Leave a reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

×