Code Monkey home page Code Monkey logo

dbcopier's Introduction

#DB Copier Copy your data from one MySQL database table to another by columns, that has different names or structure

One time I faced with problem to transfer data from one MySQL database to another that has absolutely different structures, but not data. It was need to do it manually controlled, so I wrote this script to do it a bit easier.

####How to use

  1. Copy config.php, copy.php, index.php, query.php to any folder on your site (Eg: yoursite.com/copier)
  2. Edit config.php with credential of DB user, that has privileges for both databases.
  3. Run script http://yoursite.com/copier
  4. Choose source and destination DBs.
  5. Choose source and destination tables.
  6. Choose columns in tables you would like to transfer from one table to another. You should add the same quantity of rows with similar types.
  7. Click Copy button. If data copied successfully you will get a message about how many records inserted, otherwise error description with SQL statement.
  8. After copying data remove folder /copier from the site to avoid vulnerability.

####Disclaimer Script doesn't care about your input errors, SQL-injections or something like that, also you have to understand what you do and why. It's just simple interface for "copy-paste" data from one table to another, that encapsulates ordinary INSERT SELECT query.

####Screenshots

dbcopier's People

Contributors

lial avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.