Bash script to move MySQL tables from one db to another

Completado Publicado Mar 19, 2008 Pagado a la entrega
Completado Pagado a la entrega

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!

Ingeniería MySQL PHP Gestión de proyectos Arquitectura de software Verificación de software

Nº del proyecto: #3807423

Sobre el proyecto

4 propuestas Proyecto remoto Activo Mar 24, 2008

Adjudicado a:

csigvw

See private message.

$21.25 USD en 2 días
(24 comentarios)
4.9

4 freelancers están ofertando un promedio de $32 por este trabajo

tomplus

See private message.

$42.5 USD en 2 días
(14 comentarios)
4.1
softguardian

See private message.

$55.25 USD en 2 días
(11 comentarios)
3.4
redoyrahman02

See private message.

$8.5 USD en 2 días
(0 comentarios)
1.7