Hello everybody I am struggling every time I have to export a database from my local server on my PC (using xampp) to my production server (linux Centos7)
the database from my local contains all referrers like http://localhost while in the production site they must be https://www.mysite.com
I have tried 2 find and replace plugins but when the database is big they are crashing before the job is done.
I would prefer to do all work on a shell environment using command line as it goes much quicker…
I have also installed wp-cli and now I am testing with it but the find and replace command is not clear: wp search-replace “http://old-url.com”” “https://new-url.com””
where and what database will be searched running this command which is give by wp instructions?
What is the best way to solve this migration issue?
- You must be logged in to reply to this topic.