How do i get the phpmyadmin file from sql?

First you must find the Mysql/data folder. As this may be much different depending on your configuration, you can do this:

  1. Throughout your PC, using the right search tool (depending on your OS), find the my.ini file (hopefully unique, but if not looke at the update date to select the most recent one).
  2. With an editor, open this my.ini and find a line looking like datadir=...: "..." is the path of your data folder.

Then it depends on your database's engine.

If it's MyISAM look at data folder above, find and copy its subfolder whose name is exactly your database name.

If it's InnoDB you have to:

  1. Find and copy the subfolder like for MyISAM
  2. From the data folder, find and copy ibdata1 (no extension)

For furtherly pasting that to another PC, you'll have to find the data folder the same way as explained above, then put your subfolder (and file, if innoDB) at the right place.

CAUTION: if the receiving PC already contains one or more innoDB database(s), your newly pasted database will overwrite the existing one(s)!
In this case, you could first rename the existing ibdata1 before pasting yours: then don't try working with the "hidden" databases till you suppressed the yours and renamed back.
Note that, here, it becomes an extremely weird and perilous exercise...

Follow these steps:

  • Log in to the included phpMyAdmin application.

  • Select the application database in the left navigation menu. In this example, the database is named bitnami_wordpress.

  • Select the “Export” menu item.

    How do i get the phpmyadmin file from sql?

  • On the resulting page, select the “Quick” export method and the “SQL” output format.

  • Click “Go”.

    How do i get the phpmyadmin file from sql?

An SQL export file will be created and downloaded to your desktop. Store this file carefully, as you will need it if you plan to later import the database back into MySQL.

Are you planning to share a locally-developed database from your web server? Maybe you’re migrating a database for WordPress or another content management system (CMS) for development purposes. Whatever the case, phpMyAdmin has a simple process for importing a database file after creating the database in cPanel.

In this tutorial, we will show you how to import a MySQL Database using phpMyAdmin in cPanel.

Advanced users can create and import the database using SSH.

  • Prerequisites
  • Import Database
  • Troubleshooting

Prerequisites

We’ll assume that you’ve already exported your database, and it is either a .sql, zip, or tar.gz file.

If needed, you can make changes to the file using a text editor – e.g. Notepad++ and Atom.io and file compression tools like 7-Zip and The Unarchiver.

You should have already created the new database that you’re importing into as well.

  1. Log into cPanel.
  2. Under Databases, open phpMyAdmin by clicking the phpMyAdmin icon.
  3. On the left, select the database that you will be working with.
  4. Click Import in the top menu.
  5. Under File to Import, click Browse and select the backup file you previously created (it will either be a .sql .zip or .tar.gz file).
    How do i get the phpmyadmin file from sql?
  6. Click Go at the bottom right to import the database file.
  7. When the database has been imported successfully, you should see a message at the top of the page similar to: Import has been successfully finished, ## queries executed.

Congratulations, you have just imported a database!

Troubleshooting

#1044 – Access denied

If you get the following error when importing a database via PhpMyAdmin, you will need to edit the SQL file you’re trying to import.

CREATE SCHEMA IF NOT EXISTS `DataBaseName` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; MySQL said: Documentation #1044 – Access denied for user ‘userna5’@’localhost’ to database ‘DatabaseName’

PhpMyAdmin does not allow you to CREATE databases due to security reasons. In order to get your SQL file to load you will need to remove the CREATE SCHEMA line at the beginning of your code. You can use our MySQL – 1044 Access Denied Error Message tutorial and a text editor such as Notepad++ or Atom.io to accomplish this.

50+ MB databases

The process for uploading databases over 50 MB differs depending on your InMotion Hosting plan.

Shared Servers

For databases over 50 MB, you can simply import the database via SSH. Alternatively, you can install a phpMyAdmin instance to import it to your server.

VPS / Dedicated Servers

VPS and Dedicated server users with root access can increase the max upload size as needed in WebHost Manager(WHM) Tweak Settings section.

Advanced users with root access can import a database larger than 50 MB by logging into MySQL in SSH. For more details on the mysqlimport command, go to Dev.mysql.com/doc.

Note: If you need assistance with importing the process, you can email our technical support a verified ticket request with the file and database name.

We also have articles to help you manage your databases and troubleshoot errors – e.g. MySQL Error 1064: You have an error in your SQL syntax. If you have any issues upon importing your database, trying running a check and repair using cPanel or phpMyAdmin.

How can I get SQL table in phpMyAdmin?

Run Query in phpMyAdmin.
Open phpMyAdmin..
Select the database you'd like to run a query on. ... .
Select SQL..
Look for the database name again above the text field, confirm this is the correct database you intend to run a query on..
Write or paste your query in the text field..
Click GO..

Where are phpMyAdmin database files?

Log into phpMyAdmin. Select the destination database on the left pane. Click on the Import tab in the top center pane. Under the File to import section, click Browse and locate the file with the .

How do I export and import SQL files into phpMyAdmin?

Export.
Connect to your database using phpMyAdmin..
From the left-side, select your database..
Click the Export tab at the top of the panel..
Select the Custom option..
You can select the file format for your database. ... .
Click Select All in the Export box to choose to export all tables..

How do I export from MySQL to phpMyAdmin?

Before you begin.
Log into phpMyAdmin..
Select the source database on the left pane..
Click on the Export tab in the top center pane..
On the next page you must select a Quick or Custom export method. ... .
From the dropdown menu, choose the format you'd like to save the file as. ... .
Click the Go button to continue..