Title: Rebuild DB from exported/dumped .SQL script
Last modified: August 21, 2016

---

# Rebuild DB from exported/dumped .SQL script

 *  [_Morrolan](https://wordpress.org/support/users/_morrolan/)
 * (@_morrolan)
 * [12 years ago](https://wordpress.org/support/topic/rebuild-db-from-exporteddumped-sql-script/)
 * Hi,
 * I have taken over the administration of a WordPress site for a group I am affiliated
   with. I run 2 wordpress sites myself so I am familiar with it, and I am a Python
   developer/SQL developer by day.
 * My issue is, I have been provided with a copy of the site to setup for testing
   purposes for new features/content, but the hosting provider didn’t give me a 
   DB, they gave me a .SQL script which includes structure and data.
 * My issue is:
 * How do I know/edit what the database needs to be called for WP to know which 
   one to access?
    How do I find out/replace the username/password that WP needs
   to use in order to access and edit the DB?
 * Kind Regards,
 * Morrolan

Viewing 1 replies (of 1 total)

 *  [pavandj](https://wordpress.org/support/users/pavandj/)
 * (@pavandj)
 * [12 years ago](https://wordpress.org/support/topic/rebuild-db-from-exporteddumped-sql-script/#post-4954792)
 * just create a new db on host where you want to migrate
    login using phpmyadmin
 * import the sql file that you have received
    modify wp-config.php to access new
   db

Viewing 1 replies (of 1 total)

The topic ‘Rebuild DB from exported/dumped .SQL script’ is closed to new replies.

## Tags

 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 2 participants
 * Last reply from: [pavandj](https://wordpress.org/support/users/pavandj/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/rebuild-db-from-exporteddumped-sql-script/#post-4954792)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
