Title: database name problem
Last modified: August 18, 2016

---

# database name problem

 *  [wantmoore](https://wordpress.org/support/users/wantmoore/)
 * (@wantmoore)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/database-name-problem/)
 * Is there some sort of limitation to the length a database name can be in wordpress?
   My host prepends this information to the database name:
    friendshipcorner_net_-_
   Then I create the database ‘wpress’ and insert ‘friendshipcorner_net_-_wpress’
   into my wp-config.php file. Username and password have been triple checked, but
   I’m still greeted with the wonderful error “Error establishing a database connection!”
   Feel free to see for yourself [here](http://www.friendshipcorner.net/news/wp-admin/install.php).
   Any help would be appreciated.

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

 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/database-name-problem/#post-32110)
 * wantmoore,
    How about posting the actual code from wp-config.php? Sometimes you
   look at the stuff over and over again and you just don’t see a problem. Perhaps
   some fresh eyes could be of some assistance. Craig.
 *  Thread Starter [wantmoore](https://wordpress.org/support/users/wantmoore/)
 * (@wantmoore)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/database-name-problem/#post-32120)
 * Sure thing,
    This is my latest attempt from the nightly from the 24th. Same problem
   with prior nightlies and the 1.0 release. <?php /** WordPress’s config file **//**
   [http://wordpress.org/](http://wordpress.org/) **/ // ** MySQL settings ** //
   define(‘DB_NAME’, ‘friendshipcorner_net_-_wpress’); // The name of the database
   define(‘DB_USER’, ‘friendship’); // Your MySQL username define(‘DB_PASSWORD’,‘
   password’); // …and password define(‘DB_HOST’, ‘localhost’); // 99% chance you
   won’t need to change this value // Change the prefix if you want to have multiple
   blogs in a single database. $table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2’ 
   or ‘mylogin_’ /* Stop editing */ $server = DB_HOST; $loginsql = DB_USER; $passsql
   = DB_PASSWORD; $base = DB_NAME; define(‘ABSPATH’, dirname(__FILE__).’/’); // 
   Get everything else require_once(ABSPATH.’wp-settings.php’); ?>
 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/database-name-problem/#post-32123)
 * Is your user “friendship” a member of the database? Check to see that it is indeed
   a member. I can’t see any problems with the code above. So it seems likely that
   the user doesn’t have access privileges to the database.
 *  Thread Starter [wantmoore](https://wordpress.org/support/users/wantmoore/)
 * (@wantmoore)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/database-name-problem/#post-32157)
 * Yeah, it certainly does. It’s the admin account for the entire domain and is 
   the same one used to login to PHPMyAdmin. That’s why it doesn’t make any sense.
 *  [antifuse](https://wordpress.org/support/users/antifuse/)
 * (@antifuse)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/database-name-problem/#post-32167)
 * Hrmm… did you install phpmyadmin yourself, or is it set up by your provider? 
   I know with one provider I had, when they appended stuff to the database name
   they also appended it to the username… so you could try appending friendshipcorner_net_-_
   to your username as well. Something to consider.
 *  Thread Starter [wantmoore](https://wordpress.org/support/users/wantmoore/)
 * (@wantmoore)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/database-name-problem/#post-32232)
 * It is all setup my my host. They use the ensim control panel. My other hosts 
   use cPanel which does append the domain, or a shortened version of it to the 
   database name and user name. Not the case here though, as ‘friendship’ and the
   admin password are exactly what I use to login to PHPMyAdmin. Anyone else have
   any ideas?

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

The topic ‘database name problem’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 3 participants
 * Last reply from: [wantmoore](https://wordpress.org/support/users/wantmoore/)
 * Last activity: [22 years, 4 months ago](https://wordpress.org/support/topic/database-name-problem/#post-32232)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
