Import a database schema into phpMyAdmin

If you’re using code that someone else created, it’s necessary to use the exact same database schema or setup so that the code can communicate with the database.

First, you have to make sure that you’ve created a database, and a user has been assigned permissions to that database. I have a guide covering how to do that here.

Then, go to your cPanel dashboard and open phpMyAdmin under Databases. Select your database on the left sidebar.

At the top of the screen, click on Import.

Under File to import, browse for your .sql or zip file.

Leaving all of the options at default, click Go at the bottom.

Now when you visit your database, you’ll see a table (or more) has been added. While viewing your table, you can click on the Structure tab to view the schema that has been imported. It’s important to leave everything unchanged.



Hey, thanks for reading! If you have any questions, you can leave me a comment and I always try to reply.

If you have any suggestions on how I can improve this article, please let me know!

This website is not monetized in any way. It purely exists to help others on their web-building journey. However, if you have the means to donate toward my server costs, I have a ko-fi account where I accept tips.

Leave a Comment