1) checked out head about 2 hours ago
2) wiped out old db tables
3) ran install.php, completed with no errors
4) after install, was confronted with "access denied" page
5) log out and log in
6) still get "access denied" page
7) click "my account" link on left, shows user for x min xx sec. I am able to edit my account just like I can when logged in.
8) look at address bar and notice it says /user/9. wtf?
9) look in user db, see the following:

uid         name                            pass                          mail  
==========================================================================================
0         
4         placeholder-for-uid-1                                      placeholder-for-uid-1
9         steve                            md5 hash                  my@email.com

My config:
debian (etch)
fastcgi
apache2
mysql 4.1
PHP 4.4.4-8+etch4.1

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chx’s picture

Status: Active » Postponed (maintainer needs more info)

By wiping out old DB tables, what do you mean? Have you dropped your database?

Steve Dondley’s picture

The tables were dropped not the db. Did the install on an empty db.

Steve Dondley’s picture

Status: Postponed (maintainer needs more info) » Active
Gábor Hojtsy’s picture

Status: Active » Closed (works as designed)

Seems like you "wiped your tables" (ie. emptied your tables) not dropped them. Otherwise the admin uid would not be 9.

Steve Dondley’s picture

Status: Closed (works as designed) » Active

Un, no. I dropped them. I've done this a total of 4 times now, the results are precisely the same each time. If you want, I can set up a gotomeeting with someone and they can watch my computer screen from their location and they can see for themselves.

chx’s picture

That's alas not enough. I have installed Drupal countless times on my machine and never seen this. I need file level access to see what's on.

Steve Dondley’s picture

OK, set up shell access on my server. Let me know if you want to get in there.

chx’s picture

Assigned: Unassigned » chx
Status: Active » Reviewed & tested by the community
FileSize
3.18 KB

auto_increment_increment is the name of the mysql system variable that made this happen.

chx’s picture

Other changes slipped in sorry. Thanks to sdondley for providing access.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Needs review

So why do we avoid the uid = 0 explicit UPDATE?

chx’s picture

Because some MySQL acts weirdo. And do not ask which for I can't remember. This surely works and can not hurt anything.

chx’s picture

updated comment:

This sets the above two users uid 0 (anonymous). We avoid an explicit 0 otherwise MySQL might insert the next auto_increment value.

Gábor Hojtsy’s picture

Status: Needs review » Fixed

Great, thanks, committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Steve Dondley’s picture

Status: Closed (fixed) » Active

OK, this problem seems to be rearing its head again. Fresh install of drupal 6. Started with empty datbase. When I look in the role table, I see:

1 anonymous user
5 authenticated user

My version of mysql: mysql 5.0.32

Steve Dondley’s picture

Status: Active » Closed (fixed)

OK, I see now this should probably be a separate issue, though they seem to stem from the same db problem. In this case, my role table has funky rids. Previously, the user table had bad uids. Closing will open a different bug report.

Steve Dondley’s picture

See http://drupal.org/node/222511#comment-831874 for an explanation of why this behavior occurs.

elmickio’s picture

Assigned: chx » elmickio
Priority: Critical » Normal

Hello I just installed Drupal and set everything up nicely and then when I attempted to log into my own site I got "access denied" ???

Sorry but i'm confused with this anyone help?