Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Created December 3, 2012 07:03
Show Gist options
  • Save wokamoto/4193262 to your computer and use it in GitHub Desktop.
Save wokamoto/4193262 to your computer and use it in GitHub Desktop.
[WordPress] ダンプファイルのテーブルプレフィックスを変更するシェルスクリプト
#!/bin/sh
sed -e 's/\(EXISTS\|TABLES\?\|INSERT INTO\) `wp_/\1 `wp_other_/ig' dump.sql > dump_new.sql
@wokamoto
Copy link
Author

wokamoto commented Dec 3, 2012

テーブルプレフィックスを wp_ から wp_other_ に変えた場合

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment