Closed (duplicate)
Project:
Drupal core
Version:
5.1
Component:
database system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2008 at 17:24 UTC
Updated:
24 Jan 2010 at 22:19 UTC
Drupal v.6.0
MySQL client version: 5.0.32
phpMyAdmin - 2.11.2
When Drupal installation creates the database tables it creates an error in table 'users' that creates an error when making a copy of the database for use with an other site. By default it creates two table-rows with two different auto-incremented users 'uid 0 and 1' and the 'uid 0' creates an error. when changing the 'uid 0' to 'uid 2' or another number different from '0' there is no problem and the database is copied without any problems.
This is my first day with drupal, so i hope this bug report is understandable
/Carsten
Denmark
Comments
Comment #1
smk-ka commentedSubscribing. I stumbled across this issue while working on a Demo.module issue.
Comment #2
smk-ka commentedDrupal 5 didn't have auto_increment set on the uid column, that's why exporting/importing database dumps did work.
Setting to critical, since creating a 1:1 database backup seems to be not possible anymore with Drupal 6, thanks to super-duper coding tricks in system.install:
Comment #3
smk-ka commentedTwo ways to reproduce:
Comment #4
gábor hojtsyDrupal does not "make database copies for another site", as the reporter mentioned, so the bug manifests itself out of Drupal. It is a bad MySQL export behavior and we already over analyzed it here: http://drupal.org/node/204411 Basically, if you tell MySQL to use NO_AUTO_VALUE_ON_ZERO mode, it is fine. If not, we added a workaround to the status page, which tries to fix it for you after the database dump is imported.
Comment #5
petya_vulcheva commentedHi,
I am not sure if this is the right place to post this, but I really need help. I have inserted users through the database in user table, but know when a new user try to register the system gives an error because gives to this new user already taken id, and I don't know how to make the system give id number from the last one in the database. Does anyone have an idea how to fix this?
Comment #6
marcingy commented