# betholsoncreative , Thanks
its worked, i am using godaddy hosting & got that problem on it.
also i am using WP 3.9.1 in case anyone thinking about version.
i insert the code line after 25th instance of $this->dbh
<p>If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.</p>
” ), htmlspecialchars( $this->dbhost, ENT_QUOTES ) ), ‘db_connect_fail’ );
return false;
} else if ( $this->dbh ) {
$this->has_connected = true;
$this->set_charset( $this->dbh );
$this->set_sql_mode();
$this->ready = true;
$this->query(“set session wait_timeout=600” );
$this->select( $this->dbname, $this->dbh );
return true;
}
return false;
}