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 have a simple Silverlight app that I want to run on Windows Phone
When running Rails 3 RC with Ruby 1.9.2.rc2 under RVM I keep getting a
Possible Duplicate: Is it possible to pass parameters by reference using call_user_func_array()? I have
A couple of months ago I enabled GD on localhost to play around with
I'm trying to compile an SFML program I've writting in Visual C++ 2010. It
So, i'm a bit of a perl newb. Although I had something much more
I am trying to query a hasAndBelongsToMany relationship in Cakephp 1.3, but it looks
I'm trying to use file_get_contents but it tells me failed to open stream. My
Suppose I have two classed Base and Derived , i.e.: #include <iostream> class Base

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.