Redirection with database?

Created a test hosting for Denver. Created a new database. Imported all data downloaded from the client base. When installing wp says that it is already installed and doing a redirect to another site on the premises (there was the same base but with a different name). How to solve this problem? Maybe somewhere it is necessary to change the links? But why there is a redirect, is unclear.
June 14th 19 at 18:51
1 answer
June 14th 19 at 18:53
WP in the table with the settings, change the site url from the old to the new

UPDATE
wp_options
SET
 option_value =
REPLACE
(
option_value,
'http://www.старый_домен.com',
'http://www.новый_домен.com'
)
WHERE
 option_name = 'home' OR option_name = 'siteurl';


Then in settings -General and change there address to a new one, as all the pictures etc which you have uploaded to posts will not be available or run the SQL:
UPDATE
wp_posts
SET
 guid =
REPLACE
(
guid
'http://www.старый_домен.com',
'http://www.новый_домен.com'
);

UPDATE
wp_posts
SET
 post_content =
REPLACE
(
post_content,
'http://www.старый_домен.com',
'http://www.новый_домен.com'
 )


in the name of the domain to the end is NOT supposed to be /

And you no sense to install wp using someone else's DB, correct only the config files
Yeah, but many plugins and premium templates like to keep your set-up with full paths in a serialized form. Such replacement is only going to break - Zoie.OReilly43 commented on June 14th 19 at 18:56
well , then if the Asker wants to use the plugins with templates from a donor to one database is not enough, it is easier to take a full dump and to work with him - dayana_Rippin81 commented on June 14th 19 at 18:59
full dump, it's like? I tried to download the entire folder to wp. But there is a new topic not activated. - Estrella.Jones commented on June 14th 19 at 19:02
The theme of the campaign with the binding domain
I can say that the theme (link if possible) ? - dayana_Rippin81 commented on June 14th 19 at 19:05
the theme impreza. If you put it on a clean site, no problem. I therefore thought that maybe because of the database. For this reason, decided to create a new import table. - Estrella.Jones commented on June 14th 19 at 19:08
She's in the database that says, see what and where and rule
There in the readme saying that it is recommended to put on pure VP or juzat https://wordpress.org/plugins/wordpress-database-reset/ - dayana_Rippin81 commented on June 14th 19 at 19:11

Find more questions by tags MySQLWordPress