X

Select Your Currency

$ US Dollar Indian rupee
X

Select Your Currency

$ US Dollar Indian rupee
USD

Knowledge Base

HomepageKnowledge BaseGeneralHow to import and export a database...

How to import and export a database via phpMyAdmin ('Access denied create database db_name' error)

If you're encountering an "Access denied" error when trying to create a database using phpMyAdmin, it's likely due to insufficient privileges. To import and export a database via phpMyAdmin, follow these steps:

Exporting a Database:

  1. Log in to phpMyAdmin:

    • Open your web browser and navigate to the phpMyAdmin interface.
    • Log in using your username and password.
  2. Select the Database:

    • On the left sidebar, click on the database you want to export. This will display all the tables within that database.
  3. Export Database:

    • Click on the "Export" tab from the top menu.
    • Choose the appropriate export method (Quick, Custom, etc.).
    • Click "Go" or "Export" to start the export process.
    • Save the exported file to your local machine.

Importing a Database:

  1. Log in to phpMyAdmin:

    • Open phpMyAdmin and log in.
  2. Create a New Database (If Necessary):

    • If you need to create a new database, click on the "Databases" tab in phpMyAdmin.
    • Enter the name of the new database in the "Create database" field and click "Create".
  3. Select the Database:

    • After creating the database (or if it already exists), click on it from the left sidebar.
  4. Import Database:

    • Click on the "Import" tab from the top menu.
    • Click on "Choose File" and select the SQL file you want to import.
    • Click "Go" or "Import" to start the import process.

Troubleshooting "Access denied" Error:

If you encounter an "Access denied" error while trying to create a database, it indicates that your user account doesn't have the necessary privileges to perform that operation. You'll need to use an account with appropriate privileges, such as a user account with administrative rights.

If you're unable to access the necessary privileges, you may need to contact your hosting provider or the administrator of the MySQL server to grant you the required permissions.

Remember, creating or dropping databases typically requires administrative privileges, so ensure that your user account has appropriate permissions granted.

Can't find the information you are looking for?

Create a Support Ticket
Did you find it useful?
(59 times viewed / 0 people found it helpful)

Top