Anyone have any ideas? I followed the install instructions to a T. When I access my Drupal page at http://www.cyruspatten.com/drupal this is the error I get:

"Lost connection to MySQL server during query"

Thanks in advance for your help!

Cyrus

Comments

Cyrus-1’s picture

I figured it out thanks!

rays’s picture

What did you figure out? Cuz I'm having the same problem. Thanks.

dannybedor’s picture

I did have the same error and I have solve my problem by doing this:

Look at the file 'sites/default/settings.php'
In the line:
$db_url = "mysql://username:password@localhost/database";
DO NOT change localhost with your domain.

That's it and good luck.

t.a. barnhart’s picture

i had put in the actual db server name, but that gave the error. using "localhost" did the trick.

it's weird; on another host service i use, i put in the domain of the db server. i guess it's a server config thing beyond the ken of us mere user types.

george.aprozeanu’s picture

I have my server set to localhost, but I still get this error when i load my pages sometimes.

jefbak2’s picture

I am on a Netfirms host plan and my setting is MYSQLHOST.

Can I change it to localhost?

t.a. barnhart’s picture

i finally had to contact support at Dreamhost, and they did something to fix me. i think because i moved an entire site rather than install from scratch, something didn't go right. of course, i had done that before, so who knows. anyway, if you can't find an actual answer in here, save yourself time & grief and contact tech support.