Title: Database connection
Last modified: August 19, 2016

---

# Database connection

 *  [sofie](https://wordpress.org/support/users/sofie/)
 * (@sofie)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/database-connection-2-2/)
 * Hi, My knowledge is limited and I’m still learning, but I don’t even seam to 
   get past the first step to connect to my databas.
    I’ve modified the config.php
   doc. and the username, password and database name are right, however I’m thinking
   that I maybe have to change the “localhost” to my IP or?
 * When I try to access this I get a warning message:
 * Warning: main(/mnt/gs02/herd03/31011/domains/sofiesworlds.com/html/blogme/wp-
   includes/compat.php) [function.main]: failed to open stream: No such file or 
   directory in /mnt/gs02/herd03/31011/domains/sofiesworlds.com/html/blogme/wp-settings.
   php on line 117
 * Fatal error: main() [function.require]: Failed opening required ‘/mnt/gs02/herd03/
   31011/domains/sofiesworlds.com/html/blogme/wp-includes/compat.php’ (include_path
   =’.:/usr/local/php-4.4.8-1/share/pear’) in /mnt/gs02/herd03/31011/domains/sofiesworlds.
   com/html/blogme/wp-settings.php on line 117
 * I’m a bit confused, would this be something that can be explained to me?
    Thanks

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/database-connection-2-2/#post-704068)
 * I know it looks confusing until you learn how to read the error message. Look
   at the bold part:
 * _sofiesworlds.com/html/blogme/**wp-includes/compat.php**) [function.main]: failed
   to open stream: **No such file** or directory_
 * Simply, it means some files did not make it to your server: Upload them again.
 *  Thread Starter [sofie](https://wordpress.org/support/users/sofie/)
 * (@sofie)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/database-connection-2-2/#post-704153)
 * Great thanks 🙂
 *  Thread Starter [sofie](https://wordpress.org/support/users/sofie/)
 * (@sofie)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/database-connection-2-2/#post-704155)
 * Well, I which that you could say that I got this all right. I’ve now uploaded
   all the files and now I just get a ‘page can not be found’ ([http://www.sofiesworlds.com/blog](http://www.sofiesworlds.com/blog))?
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/database-connection-2-2/#post-704159)
 * Your database connection is not happening. Recheck your wp-config.
 * You can login to your account with your host and check your database. If you 
   go to your db admin and sign in, you should see a page with something like this
   
   Welcome to phpMyAdmin 2.4.0 MySQL 4.0.16 running on localhost as yourdatabasename@localhost
 * If it does not say localhost it should give you the information to use on your
   wp-config.
 * Otherwise, there is an error in your wp-config.

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

The topic ‘Database connection’ is closed to new replies.

## Tags

 * [Installation Problems](https://wordpress.org/support/topic-tag/installation-problems/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 3 participants
 * Last reply from: [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/database-connection-2-2/#post-704159)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
