Jump to content
Sign in to follow this  
Radek Presta

Link to database cannot be established - SOLVED

Recommended Posts

Měl jsem problém, že mi nefungoval vůbec eshop ani BO.

Nezobrazil se eshop ani BO a na prázdné stránce byla chybová hláška: Link to database cannot be established.

Po dlouhém pátrání a kontrolách souboru /config/settings.inc.php
settings.inc.php
define('_DB_NAME_', 'DB_NAME');
define('_DB_SERVER_', 'DB_SERVER_FQDN');
define('_DB_USER_', 'DB_USERNAME');
define('_DB_PREFIX_', 'DB_PREFIX_');
define('_DB_PASSWD_', '********');
define('_DB_TYPE_', 'MySQL');
jsem se nakonec dostal k problému s konektivitou k MySQL Db y web serveru.

Pres FTP jsem si nahral skript pro testovani konektivity DB a zjistil jsem, ze se nejde pripojit k DB pres FQDN-DNS jmeno. Pres IP to slo.
Takze problém byl na staně provdera. Kdyz jsem zadal IP do settings.inc.php tak vse bylo OK.

Prikladam soubor na test MySQL:
testdb.php

testdb.php

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More