How to import and export databases from phpMyAdmin

How to import and export databases from phpMyAdmin

From phpMyAdmin you can manage your databases, you can add, delete or create new content.

Two of the most common operations when using phpMyAdmin is importing and exporting databases.

 

1.- Export database

Use this option when you want to migrate a host and need to import the databases to the new host or simply to save a backup.

 

First access the phpMyAdmin with the access data.

 

 

Once inside phpMyAdmin, select the database that you want to export to a file.

 

 

When selecting the database, click on Export.

 

 

A new window appears with the two options to export the database:

  • Quick: shows only minimal options and allows one-click export by clicking Go.

 

 

  • Custom: allows you to select the tables you want to export, modify the "Character set of the file" UTF-8, select compression, if you want the generated file to take up less space or the file format, among other options.

 

 

Once the file is downloaded, you already have the copy of the database on your disk, ready to import.

 

2.- Import database

 

To import a database you need the previously generated file with the data. If you are migrating a database from another host to cdmon, you must have a copy of the database in a file with a .sql, .zip, .tar.gz or .tgz extension on your computer's hard drive.

 

If the database to be imported is more than 30 MB you have to carry out the import through the cdmon Control Panel. If the database is less than 30 MB you can do it from the same phpMyAdmin.

 

First, choose the database to which you want to import the file. You can also create it through the cdmon Control Panel.

Once inside phpmyadmin, select the database you have created to which you want to import the file.

 

 

Click the Import link.

 

 

Displays the window where it allows you to browse and search for the database file. Click on Seleccionar archivo, select the file and accept.

In the selection of "Character set of the file" you have to select the same option that you chose when you exported the database. UTF-8 is commonly used.

 

 

Once this is done, all you have to do is click Go and wait for the file to load. It will take more or less, depending on the size of the file.

 

 

For more information, you can contact us.

    • Related Articles

    • How to access phpMyAdmin

      If you want to view, modify or delete data from your database, it is best to access via phpMyAdmin. phpMyAdmin is a database manager through the Internet browser. You can access it through the Hosting Control Panel by requiring MySQL access data. ...
    • The test platform is published with .mialias.net How is it solved?

      The test platform is a free service that allows you to have a hosting space without having a domain pointing to this test platform. This means that the test platform can be accessed with "internal" access, which is what we call with the ...
    • Pilotron | Backup management in cdmon

      Pilotron is your artificial intelligence assistant in the control panel of cdmon. With this tool, you can manage and get information about your databases quickly and easily, without manually navigating the dashboard. In this guide, we explain the new ...
    • How to connect to a database with MySQL Workbench

      Below we explain step by step how to establish a connection to your MySQL database using MySQL Workbench, including the necessary screenshots to guide you through the process. 1. Download and installation of MySQL Workbench MySQL Workbench is a free ...
    • Basic SSH Manual

      Buy Web Domain and SSL certificates With SSH access, you can work with your files and directories securely, and with connection from an application or command interpreter. Here is an example of a command interpreter for each of the most used ...