Bash script to move MySQL tables from one db to another

完了済み 投稿 Mar 19, 2008 着払い
完了済み 着払い

We need a bash script (or PHP - just needs to run on a LAMP stack) that will do the following steps:

1: Copy all tables in Database B to Database C

2: Copy all tables in Database A to Database B

3: Run a number of SQL statements on database B

The real world scenario is that we have a live database and a development database, we want to be able to easily copy all data from the live database (A) to the development database (B) whilst maintaining a copy of B in C (just in case...). After performing the switches, we need to run a few sql statements to do things like changing user email addresses etc - these aren't defined yet so just write the script with the ability to add new SQL statements in as we choose.

So when complete database A will be the same, database B will be an identical copy of A and database C will be a copy of B before B was replaced with a copy of A.

Thanks!

エンジニアリング MySQL PHP プロジェクト管理 ソフトウェアアーキテクチャ ソフトウェアテスト

プロジェクトID: #3807423

プロジェクトについて

4個の提案 リモートプロジェクト アクティブ Mar 24, 2008

アワード:

csigvw

See private message.

$21.25 USD 2日以内
(24レビュー)
4.9

4人のフリーランサーが、平均$32 で、この仕事に入札しています。

tomplus

See private message.

$42.5 USD 2日以内
(14件のレビュー)
4.1
softguardian

See private message.

$55.25 USD 2日以内
(11件のレビュー)
3.4
redoyrahman02

See private message.

$8.5 USD 2日以内
(0件のレビュー)
1.7