Helpdesk
07.04.2025 15:51 173 Displayed

Import SQL files into a MySQL database

The import process allows you to securely restore your backed-up database.

In this article, we will explain step by step how to import your database.

 1- Log in to the Customer Control Panel:

  • Log in to the Atak Domain customer control panel.

Import SQL files into a MySQL database

2- Select Your Hosting Account:

  • Click the “My Hostings” button in the Atak Domain Customer Control Panel.

Import SQL files into a MySQL database

  • Click the Manage button next to your hosting service.

Import SQL files into a MySQL database

3- Connect to cPanel:

  • On the “Hosting Management” page, click the Go to Control Panel button to access cPanel.

Import SQL files into a MySQL database

4- Access phpMyAdmin:

  • On the main page of cPanel, find the Databases section and click on the phpMyAdmin icon.

SQL dosyalarını bir MySQL veritabanında içe aktarın

5- Select Your Database:

  • When phpMyAdmin opens, you will see a list of your existing databases on the left. In this example, the database is named test_db.

Import SQL files into a MySQL database

6- Import:

  • Click the Import tab on the top menu of phpMyAdmin.

Import SQL files into a MySQL database

  • Under the file upload section, click Choose File and locate the .sql file on your computer that you want to import. In this example, the database file is named backup.sql.

    SQL dosyalarını bir MySQL veritabanında içe aktarın
  • The default settings are sufficient for most users. However, if you're using a different character set or format, you can adjust the charset and format options
  • Click the Import button at the bottom of the page to import the database.

Import SQL files into a MySQL database

  • When you click the Import button, phpMyAdmin will import the SQL file. Depending on the size and content of the file, this process may take a few seconds or a few minutes.
  • Once the import is complete, phpMyAdmin will display a success message. New data will be added to your database and tables will be created.

Import SQL files into a MySQL database

Congratulations! You have successfully imported your SQL file into your MySQL database.

Import SQL files into a MySQL database