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

  • SEARCH
  • Home
  • 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 6072135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:07:36+00:00 2026-05-23T10:07:36+00:00

Recently MySQL 5.1.49 (OSX) started inserting the same value ‘2147483647’ for ALL integer fields

  • 0

Recently MySQL 5.1.49 (OSX) started inserting the same value ‘2147483647’ for ALL integer fields named id and set as primary key. This is happening for all databases and all tables. Here’s the a quick example:

mysql> INSERT INTO packages(id,name,rate) VALUES ('37364428662',"Testing","300");
Query OK, 1 row affected, 1 warning (0.00 sec)

mysql> SELECT * FROM packages;
+------------+---------+------+
| id         | name    | rate |
+------------+---------+------+
| 2147483647 | Testing |  300 |
+------------+---------+------+
1 row in set (0.00 sec)

mysql> 

I’m attempting to re-install MYSQL as nothing else seems to be working : / I’ll post any solutions I manage but meanwhile any help is always appreciated!

  • 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-23T10:07:36+00:00Added an answer on May 23, 2026 at 10:07 am

    It’s probably because your id field is a 32 bit integer and the value 37364428662 will require more than 32 bits to store. Try changing the type of id to an unsigned int, or some larger integer type.

    It appears when you try to enter 37364428662 it’s defaulting to the largest possible value for an int 32 (2147483647).

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

Sidebar

Related Questions

I have recently decided to switch all my current plain mysql queries performed with
I recently added slug fields to my MySQL database models (I don't know why
I always have trouble mixing languages and I recently started with MYSQL. In this
Recently I have started getting mySQL too many connection errors at times of high
I recently started on creating a 'game' using PHP and a mysql database. In
I jut recently started learning PHP from a book called PHP/MySQL Programming for the
I have recently started exploring free hosting sites where they provide free mysql and
I've recently started using oracle after a few years of using mysql. I was
I've recently attempted to install mysql on my mac - osx lion. I followed
Until recently, I've used MySQL for all my database needs in all my server

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.