A
A
Andrey Chernov2014-10-05 14:45:01
Domain name market
Andrey Chernov, 2014-10-05 14:45:01

Wordpress: after changing the domain, it is not possible to enter the control panel from the new domain. How can I fix it?

I changed the domain to the site, I made the changes in MySQL. Links have changed throughout the site.
But when I decided to go to the control panel through the new domain, the login and password did not fit.
I managed to enter through the previous domain with the previous data, and when I made changes on the site through it, they were displayed on the site with the new domain.
Where else do you need to change domain addresses? Or what else needs to be done?
I wrote the following queries in SQL (domains from the blog):

UPDATE wp_options SET option_value = REPLACE(option_value, 'http://test.truemisha.ru', 'http://truemisha.ru') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://test.truemisha.ru', 'http://truemisha.ru');

UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://test.truemisha.ru','http://truemisha.ru');

UPDATE wp_posts SET guid = REPLACE (guid, 'http://test.truemisha.ru', 'http://truemisha.ru') WHERE post_type = 'attachment';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zelenin, 2014-10-05
@zelenin

when you change something, change the minimum required character set. In this case, you might have had a domain without http in your settings and you didn't change it.
100% option in the dump to do a search and replace and upload the corrected dump back.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question