Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Trying to connect Drupal running from my localhost to a remote database but coming across issues.

I am using the following string in my settings.php file:

$db_url = 'mysqli://';

I am getting the following error:

Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\myapp\includes\ on line 115

What I am doing wrong?

share|improve this question
up vote 2 down vote accepted

Check connection to remote database:

$ telnet xx.xx.xx.xx 3306


$ mysql -u username -p -h xx.xx.xx.xx -D database_name

On remove server can be configured firewall or MySQL not listen to xx.xx.xx.xx address.

share|improve this answer
Thanks. I can successfully connect to the DB on remote host using MySQL Workbench. Only when I am trying to connect with Drupal it doesn't work. Any ideas. – April Feb 6 '11 at 22:45
change "mysqli" to "mysql" – alvosu Feb 6 '11 at 23:18

Increase the max execution time in your php.ini to see if this helps.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.