Press Esc to exit the insert/append mode.Press Enter to run the command, which will execute a search and replace of the old domain/data with the new domain/data. Once in command mode, execute a search and replace with the following command: %s/ OldDomain/ NewDomain/g For example:Įnter command mode by typing the colon ( :) character. Note: If your current working directory is different than your working directory at the time the dump file was created, then you will need to include the path to the file in the command. filename.sql is the name of the dump file you just created.Update the command with the following information: Open the dump file with the vim text editor with the following command: vim filename.sql Connect to your server or shared hosting account with SSH.Warning: Make a backup of your database before making any changes.
0 Comments
Leave a Reply. |