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 6540197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:56:57+00:00 2026-05-25T10:56:57+00:00

I have been asking a few questions recently to work out how to change

  • 0

I have been asking a few questions recently to work out how to change our Magento store’s product codes.

The answer was to run this command within phpmyadmin:

UPDATE `catalog_product_entity` SET `sku` =  RIGHT(CONCAT('00000000', sku), 8)

It worked perfectly, changing all of our product codes from:

63
3433
432
42342343

to:

00000063
00003433
00000432
42342343

The problem is; everytime I run that command it correctly changes the product codes – but all products are then 404’ing. I then refreshed the indices and found that the were locked. I got the following error:

Cannot initialize the indexer process.

so I ran the following commands via SSH:

rm -rf downloader/pearlib/cache/*
rm -rf downloader/pearlib/download/*
rm -rf var/cache/*
rm -rf var/session/*
rm -rf var/report/*
rm -rf var/tmp/*
rm -rf var/locks/*

but the index processes still wouldn’t run. I have now completely messed up the database and am waiting for a support tech to try and fix the problem. I will likely be recovering the database from the backup I took before I ran the SQL command.

I am trying to work out how to run this SQL command without messing the Magento (1.5) locks etc. up so that the products don’t 404.

  • 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-25T10:56:58+00:00Added an answer on May 25, 2026 at 10:56 am

    Ok, so the answer was simple.

    1. Disable all cache options
    2. Re-index the indices.
    3. Run the SQL command.
    4. Re-index the indices.
    5. Refresh then re-enable the cache

    Hope this helps someone else in future!

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

Sidebar

Related Questions

Hey guys, lately I have been asking quite a few questions about memory management
I know there have been a million questions asking this, but mine is different.
Very sorry to be asking one of these questions, but I have been trying
Sorry guys, I hate asking dumb questions but I have seriously been searching for
I've been asking a lot of questions here over the past few days trying
I have been reading a few questions previously asked and I haven't come across
I know there have been a few other people asking this question, but my
Alright as I have been asking the last couple days and inching closer and
I've recently joined TopCoder and have been practicing in the Practice Rooms for the
I have been trying to figure out a question on a recent assignment for

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.