How can I duplicate a database using phpmyadmin?

删除回忆录丶 提交于 2020-07-31 06:57:30

问题


I want to duplicate my database with phpmyadmin.

How should I proceed?

phpmyadmin Version: 3.4.5deb1


回答1:


Login with phpmyadmin and then:

  1. Select your database that you want to duplicate.
  2. Find the 'Operations' tab as per below screenshot and click on that
  3. After selecting the tab you will see the 'Copy Database to:' section see screenshot.
  4. Enter the new database name where you want to copy the database
  5. Click on the Go button and wait.

After the process completes, go and find the new database created with all the data.




回答2:


Go to the database you want to duplicate and click the Operations tab. In the Operations page under Copy database to section enter the name of the new database and click Go button.




回答3:


phpMyAdmin tool can be used to export and import databases up to a few MB in size, providing a simple way to duplicate a copy of a database using a different name on the servers.

Exporting a copy of the database to your computer

  1. Login to the database that you want to duplicate using phpMyAdmin
  2. Click the database name on the left-hand side of the page. (Don't skip this step — if you continue to step 3 before doing this, you won't be able to reload the database under a new name later.)
  3. Select the Export tab
  4. Select the Save as file option
  5. Click Go

You'll then be prompted to save the database file on your personal computer.

Importing the copy into a new database

You'll first need to create the new, empty database on the servers using the account control panel. After the new database has been created:

  1. Login to the new database using phpMyAdmin
  2. Click the database name on the left-hand side of the page
  3. Select the Import tab
  4. Click the browse button under "File to Import", then select the database file from your computer
  5. Click Go to import the database
  6. List item

Hope this article would help you: http://support.tigertech.net/mysql-duplicate




回答4:


Export the database from the "export" menu in PHPMyAdmin. Open the downloaded sql file with a texteditor (like notepad). Search and replace the file for all occurences of the databasename, and replace it by the new name. Save the file. Import the saved file via the "import" menu in PHPMyAdmin.

You now have your duplicated database.



来源:https://stackoverflow.com/questions/16481083/how-can-i-duplicate-a-database-using-phpmyadmin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!