# Which .sql file do I import to phpMyAdmin to host a locally developed site with my hosting server?

**URL:** <https://community.localwp.com/t/which-sql-file-do-i-import-to-phpmyadmin-to-host-a-locally-developed-site-with-my-hosting-server/5545>\
**Category:** Support\
**Tags:** deployment, dreamhost\
**Created:** [March 7, 2018, 9:50pm UTC](https://community.localwp.com/t/which-sql-file-do-i-import-to-phpmyadmin-to-host-a-locally-developed-site-with-my-hosting-server/5545 "2018-03-07T21:50:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cooperlovano](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@cooperlovano](https://community.localwp.com/u/cooperlovano)\
**Post date:** [March 7, 2018, 9:50pm UTC](https://community.localwp.com/t/which-sql-file-do-i-import-to-phpmyadmin-to-host-a-locally-developed-site-with-my-hosting-server/5545/1 "2018-03-07T21:50:46Z")

</div>

I have set up a database with my hosting service and am prepared to import the SQL file with phpMyAdmin in order to host the site with DreamHost.  
I do not know which SQL file needs to be imported though, and see many .sql files in app/sql. Are one of these the files that will allow me to update my wp-config file to reflect the new database information?

Thank you,  
Cooper

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [March 7, 2018, 10:50pm UTC](https://community.localwp.com/t/which-sql-file-do-i-import-to-phpmyadmin-to-host-a-locally-developed-site-with-my-hosting-server/5545/2 "2018-03-07T22:50:34Z")

</div>

Hey @cooperlovano –

Each of those sql files corresponds to one table in the database. They are broken up that way so that you can selectively import them.

Because of this, you can’t just point to one of the files and have it display the site.

Instead, you want to combine all of the files into one file, and then use that to populate the database on your host.

This forum post talks about doing this under Windows: [Can't find the proper SQL file](https://local.getflywheel.com/community/t/cant-find-the-proper-sql-file/4932/2)

If you are on a Mac, you can use the `cat` command in the terminal to combine them. That would look something like:

```auto
cat *.sql > local-site.sql

```

This will merge all of the `sql` files into the `local-site.sql` file which you can use on the host.

Let me know if you have any questions!

– Ben

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:34pm UTC](https://community.localwp.com/t/which-sql-file-do-i-import-to-phpmyadmin-to-host-a-locally-developed-site-with-my-hosting-server/5545/3 "2020-08-25T18:34:00Z")

</div>

Closed on August 25, 2020, 6:34pm UTC


