Skip to content

Instantly share code, notes, and snippets.

@KINKCreative
Created April 8, 2014 20:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KINKCreative/10189059 to your computer and use it in GitHub Desktop.
Save KINKCreative/10189059 to your computer and use it in GitHub Desktop.
Fix Magento redirect to old site
# OPEN MYSQL
$ sudo mysql -p
# SWITCH TO YOUR MAGENTO DATABASE
mysql> use magentodb
# IF YOU WANT TO CHECK COLUMN NAMES
mysql> SELECT `COLUMN_NAME`FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA`='magentodb' AND `TABLE_NAME`='core_config_data';
# REPLACE THE DOMAIN VALUE
mysql> update core_config_data set value='http://www.newaddress.com' WHERE value='http://www.oldaddress.com/';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment