Title: Error connecting to database
Last modified: February 14, 2023

---

# Error connecting to database

 *  [andyandy](https://wordpress.org/support/users/androidandreas/)
 * (@androidandreas)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database-13/)
 * I have suddenly lost access to my webiste.
 * I have no idea what happened. It is hosted by a friend who bullt the site for
   me and he has no idea what happened either.
 * Presumably the site hasbeen deleted from the server?
 * How can I get up and running again, as I cannot even log into wp-admin to start
   rebuuilding.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-connecting-to-database-13%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [lisa](https://wordpress.org/support/users/contentiskey/)
 * (@contentiskey)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database-13/#post-16469864)
 * **review this guide**: [https://wordpress.org/documentation/article/common-wordpress-errors/#error-establishing-database-connection](https://wordpress.org/documentation/article/common-wordpress-errors/#error-establishing-database-connection)
 *  Thread Starter [andyandy](https://wordpress.org/support/users/androidandreas/)
 * (@androidandreas)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database-13/#post-16470040)
 * Thanks for this. Unforunately I dont have access to the site as a freind hists
   it oin his website.
 * If I wanted to start again from scratch, how would I get going? Like, creating
   a new login/passwoprd as a first step?
 *  [lisa](https://wordpress.org/support/users/contentiskey/)
 * (@contentiskey)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database-13/#post-16470154)
 * A-if your friend is hosting the website, you could ask the friend to export the
   database and files that make up your website so you could import the database
   and upload the files in a hosting plan that you own. be sure your new hosting
   plan is connected the your domain name – does your friend also control your domain
   name? (some webhosting plans help with migrating websites into their accounts)
 * —-
 * B-to start a completely new self-hosted website powered by WordPress (not related
   to anything on your current website) — you will need to first purchase a domain
   name and purchase a webhosting account.
 * Basic overview of process:
    - connect the new domain name to the new webhosting account
    - install WordPress ([https://wordpress.org/download/](https://wordpress.org/download/))
    - set up new pages,posts, and settings and create all of your new content (text,
      images, documents etc)
 *  Thread Starter [andyandy](https://wordpress.org/support/users/androidandreas/)
 * (@androidandreas)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database-13/#post-16470232)
 * Tahksfor this Lisa.
 * ASs I speak my pal is creating a new isntallation from ground zero.
 * I do own and control the domain name and have my own hosting package for another
   site I buult in WordPress. My freind however is happy to host house this particular
   site on his hosting package.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error connecting to database’ is closed to new replies.

## Tags

 * [error connecting to database](https://wordpress.org/support/topic-tag/error-connecting-to-database/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [andyandy](https://wordpress.org/support/users/androidandreas/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database-13/#post-16470232)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
