I'm trying to install Drupal 6 locally on my mac and I'm running into some problems. I get to the Database Configuration section, I put in my database name ('drupal'), username ('root'), and password ('root'). I press Save and Continue and then the page just reloads.

If I enter in a different username and password, I get the correct error - "Failed to connect to your MySQL database server. MySQL reports the following message: Access denied for user 'adsfa'@'localhost' (using password: YES)."

Anyone know what could be causing this? Searched the net and found a few examples but no solutions.

Thanks for any help you can provide,

Joe

Comments

joelongstreet’s picture

I could really use some help on this. My boss is a real terror.

joelongstreet’s picture

Installed Drupal 5 instead and it worked. No idea why.

Joe

stormer’s picture

I'm having exactly the same problem with Drupal 6.14 running the latest version of Snow Leopard. I followed these instructions http://drupal.org/node/66187 to the letter but I too just get a page refresh. Doesn't matter whether I use the user/password for MAMP (ie root/root) or the user/password assigned to my database - the result is always a page refresh with no error message (unless I specifically use a non-existent user).

I then tried manually entering the information into the settings.php and that did the trick. However, I used 'mysql://......' as opposed to the mysqli option the setup process offered.

Hope that helps.

deezknots’s picture

Yes... editing line #92
$db_url = 'mysql://username:password@localhost/databasename';
to
$db_url = 'mysql://myuser:mypassword@localhost/the_drupal_db_name';
/sites/default/settings.php
Worked perfectly. Thanks for posting!

ngim55’s picture

Thanks for post Deezknots!
I was going nuts because in the installation process the database configuration was only refreshing every time i typed in the database information.

I could have saved me a day in research if i had found your manual fix for the database information.
I deleted and re-installed MAMP and Drupal about four times.
Thanks again.

Ps. I am running MAMP and Drupal 6.16 in a Mac OS10.5.8
Norman

flim360’s picture

Thanks deezknots!

I was going mad trying to find the solution. Had the same problem with the database configuration page. It would refresh but nothing happened, and I can connect to the database no problem.

Editing the $db_url worked for me.

I'm running:
Mac OS 10.6.2
PHP 5.3.0 (Mac bundled version, non-MAMP)
MySQL 5.0.5 (non-MAMP)
Drupal 6.1.6

stroggio’s picture

Hi, I'm having the same issue. I've tried both of the above suggestions and neither one will work for me. I'm trying to install v6.15 on OSX snow leopard

t.tashi@live.com’s picture

Hi, I tried all above but still I'm having problem. Anybody have any solutions. thanks

louisdipietro’s picture

Tried everything. The third process in the drupal installation process (database configuration) simply reloads after every login. No error messages, just the same form over and over. Any suggestions?

louisdipietro’s picture

I was editing the wrong line in my settings.php. I was mistakenly making changes to mysql in the "Database URL Format". I'm new, what can I say. Just wanted to send this along in the event that another newbie makes a similar mistake.

techtweaker’s picture

Make sure you copy THEN rename the copy of "default.settings.php"

if the default.settings.php does not remain, the following is logged in the php error file, and the installer "resets".

PHP Warning: fopen(./sites/default/default.settings.php) [function.fopen]: failed to open stream: No such file or directory in C:\wamp\www\test\includes\install.inc on line 188

Drupal may be running some sort of comparison or verification of the file(s) to require this.