Drupal error when accessing sites: Can't get hostname for your address -


i'm getting following error when trying access sites on server through browser. can ssh server , tried running flush hosts command didn't anything. host in question in mysql user table , has username/password , relevant privs. issue appeared since office move , server switched on. can think of being network issue of sort.

pdoexception: sqlstate[hy000] [1042] can't hostname address in db_table_exists() 

how resolve this?

i think need check if mysql hostname defined in $databases['default']['default']['host'] of drupal sites/default/settings.php file reached machine drupal running.

try connect ssh , ping or telnet hostname.

instead of hostname try using ip address. otherwise, if hostname not resolved, try adding /etc/hosts if you're on linux.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -