Click here to Skip to main content
13,661,661 members
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

5.2K views
Posted 7 Mar 2016
Licenced CPOL

Duplicate MySQL Table Using phpMyAdmin

, 15 Mar 2016
Rate this:
Please Sign up or sign in to vote.
Duplicate MySQL table using phpMyAdmin

There many reasons for creating copies of existing relational database tables. Sometimes, you create duplicate tables for the purposes of table backup or for application testing purposes. Whatever your reasons may be, you will notice that different relational database integrated development environments (IDE) implement table duplication differently.

I would like to demonstrate how a duplication of a MySQL table can be achieved using phpMyAdmin. I was introduced to phpMyAdmin by my current website hosting provider as part of a content management system (CMS) package that I had signed up for. I’ve found phpMyAdmin to be an effective application for managing my website’s MySQL databases. The steps for doing all of this are quite simple:

Step 1

Login into your instance of phpMyAdmin and navigate to the Operations menu tab. You will notice that you are presented with several options underneath this menu tab – the one we are interested in, is at the bottom right with a heading as “Copy table to (database.table):“.

 

Step 2

Select database and table that you want duplicated. There are also additional options that you can choose, i.e., do you want to duplicate the table’s structure only or do you want both structure and its content?

Step 3

Finally, when you are done with your selections, press Go and you will receive a confirmation message box upon the completion of the duplication operation. As it can be seen below – I have successfully duplicated select SIFISO table into select SIFISO Bak table.

It’s that simple, folks!

Until next time, cheers.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sifiso W Ndlovu
Technical Lead select SIFISO
South Africa South Africa
Sifiso W. Ndlovu is a certified Microsoft professional who holds a Master’s degree in IT Management from the University of Johannesburg. He specializes on a range of enterprise and consumer technologies using open source and proprietary software. He is the member of the Johannesburg SQL User Group wherein he has made several presentations on User Group Meetings and SQL Saturday sessions. He has written for a number of publications including SQLShack.com and SQLServerCentral.com.

You may also be interested in...

Pro
Pro

Comments and Discussions

 
SuggestionAnother Alternative: By executing 2 SQL queries Pin
adriancs18-Mar-16 1:58
professionaladriancs18-Mar-16 1:58 
QuestionRE: Images Pin
Sifiso W Ndlovu15-Mar-16 0:31
professionalSifiso W Ndlovu15-Mar-16 0:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web06-2016 | 2.8.180810.1 | Last Updated 15 Mar 2016
Article Copyright 2016 by Sifiso W Ndlovu
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid