K
K
Kirill Krivitsky2015-09-07 20:19:17
MySQL
Kirill Krivitsky, 2015-09-07 20:19:17

What SQL query to ask to remove part of the URL?

Transferred the site, and during the transfer, I don’t know why the path to the pictures changed. The path is
now
/wp-content/uploads/sites/5/2015/09/Obereg.jpg I need to make a request to remove sites/5/ , but I don’t know which one, tell me

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
heartdevil, 2015-09-07
@KrivitskiyKirill

Hello
Before you change anything in the database, ALWAYS make a backup.
Try like this:
Generally speaking, when migrating a site to wordpress, you usually need to change the database in several places. Read here .

E
eldar_web, 2015-09-07
@eldar_web

You will have to select all entries, and in the language in which the site is written, change these places. You can use regular expressions, you can use ready-made substitution functions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question