Title: Can’t select database Error
Last modified: August 19, 2016

---

# Can’t select database Error

 *  Resolved [maxell](https://wordpress.org/support/users/maxell/)
 * (@maxell)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/cant-select-database-error-3-2/)
 * Hi. I Uploaded my site on an ftp host which i have used several times and it 
   have worked great.
 * But when i have uploaded the folder wordpress and all of its content and then
   tries to start up the install.php on the browser it gives me errors.
    -  **The Error**
 * <quote>Can’t select database
 * We were able to connect to the database server (which means your username and
   password is okay) but not able to select the maxell.ma.funpic.org database.
 *  * Are you sure it exists?
    * Does the user maxell have permission to use the
   maxell.ma.funpic.org/blogg/ database? * On some systems the name of your database
   is prefixed with your username, so it would be like username_wordpress. Could
   that be the problem?
 * If you don’t know how to setup a database you should contact your host. If all
   else fails you may find help at the WordPress Support Forums.</quote>
    -  **And this is the options**
 *     ```
       <?php
       // ** MySQL settings ** //
       define('DB_NAME', 'maxell.ma.funpic.org');    // The name of the database
       define('DB_USER', 'maxell');     // Your MySQL username
       define('DB_PASSWORD', 'XXXXXX'); // ...and password
       define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
       define('DB_CHARSET', 'utf8');
       define('DB_COLLATE', '');
   
       // Change SECRET_KEY to a unique phrase.  You won't have to remember it later,
       // so make it long and complicated.  You can visit http://api.wordpress.org/secret-key/1.0/
       // to get a secret key generated for you, or just make something up.
       define('SECRET_KEY', 'ellinormattias'); // Change this to a unique phrase.
   
       // You can have multiple installations in one database if you give each a unique prefix
       $table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!
   
       // Change this to localize WordPress.  A corresponding MO file for the
       // chosen language must be installed to wp-content/languages.
       // For example, install de.mo to wp-content/languages and set WPLANG to 'de'
       // to enable German language support.
       define ('WPLANG', '');
   
       /* That's all, stop editing! Happy blogging. */
   
       define('ABSPATH', dirname(__FILE__).'/');
       require_once(ABSPATH.'wp-settings.php');
       ?>
       ```
   
 * **Thankful for any help!**
 * **_//Maxell_**

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/cant-select-database-error-3-2/#post-761842)
 * This looks suspect:
 * `define('DB_NAME', 'maxell.ma.funpic.org'); // The name of the database`
 * Also, check with your host about the DB_HOST value.
 *  Thread Starter [maxell](https://wordpress.org/support/users/maxell/)
 * (@maxell)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/cant-select-database-error-3-2/#post-761864)
 * I searched on their forum about the the database name and found what to do. Thanks
   for the help.

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

The topic ‘Can’t select database Error’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [ftp](https://wordpress.org/support/topic-tag/ftp/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [settings](https://wordpress.org/support/topic-tag/settings/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [maxell](https://wordpress.org/support/users/maxell/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/cant-select-database-error-3-2/#post-761864)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
