![]() You can see how they switched to the new sitename after the SQL code ran. Note that the image paths are displayed in the lower left hand corners of the images. This will also affect any other ‘hard coded’ links that were in the posts that pointed to the original site.īelow are before and after shots of the changes made. Remove xampp and install mysql,phpmyadmin,php5, apache2 manully. First : Like previous dev said before, it is possible to take the last zip on phpmyadmin website, unzip it and put the extracted folder in laragon/etc/apps. For instance, our original site was and the new test site will be at so the code should appear as below: UPDATE wp_posts SET post_content=(REPLACE (post_content, '','')) Ĭlick on the Go button to run the code and change the URLs for all images in the posts. In fact, there is two possibilities to add phpMyAdmin to Laragon. UPDATE wp_posts SET post_content=(REPLACE (post_content, '','')) īe sure to replace with the old sitename and with the new site name. In the code area, copy the following bit of MySQL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |