Title: Database Problems
Last modified: August 18, 2016

---

# Database Problems

 *  [motou](https://wordpress.org/support/users/motou/)
 * (@motou)
 * [23 years ago](https://wordpress.org/support/topic/database-problems/)
 * I got a problem with the installation of wp,
    i changed my php config file to://**
   MySQL settings ** define(‘DB_NAME’, ‘motou’); // The name of the database define(‘
   DB_USER’, ‘motou’); // Your MySQL username define(‘DB_PASSWORD’, ‘password’);//…
   and password define(‘DB_HOST’, ‘freesql.org’); // 99% chance you won’t need to
   change this value but it doesn’t work. It complained always “Cannot connect to
   the database” and when i click further, i found Wp-install.php tries using ‘root@
   localhost’ to connect a database, but not the user name. Is that a bug in WP?
   i use freesql.org as mySQL supporter. Any reply will be appreciated.

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

 *  Anonymous
 * [23 years ago](https://wordpress.org/support/topic/database-problems/#post-24582)
 * Set DB_Host to be ‘localhost’, should solve you problem
 *  [Dougal Campbell](https://wordpress.org/support/users/dougal/)
 * (@dougal)
 * [23 years ago](https://wordpress.org/support/topic/database-problems/#post-24600)
 * You did rename “wp-config.sample.php” to “wp-config.php”, didn’t you?

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

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 3 participants
 * Last reply from: [Dougal Campbell](https://wordpress.org/support/users/dougal/)
 * Last activity: [23 years ago](https://wordpress.org/support/topic/database-problems/#post-24600)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
