Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4590604
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:16:32+00:00 2026-05-21T22:16:32+00:00

I get this warning when I run a mysql database optimization command: warning :

  • 0

I get this warning when I run a mysql database optimization command:

warning  : Found row where the auto_increment column has the value 0
status   : OK

This warning come at the users table and I am not sure whether it is not problematic for a drupal database. Mysql has this explanation for the warning:

This is not an error in itself, but
could cause trouble if you decide to
dump the table and restore it or do an
ALTER TABLE on the table. In this
case, the AUTO_INCREMENT column
changes value according to the rules
of AUTO_INCREMENT columns, which could
cause problems such as a duplicate-key
error.

A problem which may be pertinent to this warning is that whenever I try to block a user, I get a server times-out and the request does not take effect. I don’t know what query to run to pinpoint the row(s) where this occurs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T22:16:33+00:00Added an answer on May 21, 2026 at 10:16 pm

    You can’t do anything about this in Drupal 6. UID 0 and 1 have a special meaning in Drupal and need to exist like that, although MySQL doesn’t like it (for good reasons). Because of these good reasons, this was fixed/changed in Drupal 7. Some background…

    In Drupal 5 and older, the database layer didn’t use AUTO INCREMENET because of compatibility with other databases. All such id’s relied on db_next_id() which had to be called manually before a new row was inserted.

    In Drupal 6, the Schema API was added (Allows to define the schema in PHP arrays and Drupal will then build the database specific create table etc. queries). db_next_id() was removed and for a few tables (users and actions, mainly) some hackish workarounds were added. This however lead to problems (like not being able to easily export and import the table, as MySQL tells in the warning description).

    In Drupal 7, db_next_id() was added again, explicitly for tables where a AUTO_INCREMENT (called ‘serial’ in the Drupal Schema API) doesn’t work well. the User Relationships project, which I maintain for Drupal 7, was doing something weird too with an auto_increment table (re-use of id’s to connect unidirectional relationships together) too, which I recently replaced with db_next_id(). So, if you maintain a custom or contrib module which does hack around AUTO INCREMENT, use db_next_id() in Drupal 7 instead!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I run this bit of code through GCC I get this warning on
I get this warning from GCC: warning: cannot pass objects of non-POD type 'class
Running FxCop on my code, I get this warning: Microsoft.Maintainability : 'FooBar.ctor is coupled
I'm using Chris Pederick's Firefox addon Web Developer 1.1.6 . I get this warning
i get this error {Method 'System.DateTime ConvertTimeFromUtc(System.DateTime, System.TimeZoneInfo)' has no supported translation to SQL.}
Well I have this MySQL stored procedure that I wrote and if I run
I get this error: Can't locate Foo.pm in @INC Is there an easier way
I get this error on an update panel within a popupControlExtender which is within
I get this error when I do an svn update : Working copy XXXXXXXX
I get this error:- You have an error in your SQL syntax; check the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.