Title: How do I create Database?
Last modified: August 30, 2016

---

# How do I create Database?

 *  [Rehma](https://wordpress.org/support/users/rehma/)
 * (@rehma)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-create-database/)
 * This either means that the username and password information in your wp-config.
   php file is incorrect or we can’t contact the database server at mysql. This 
   could mean your host’s database server is down.
    Can some one please tell me 
   in plain English how to make a database?throughly

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

 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-create-database/#post-6367259)
 * cPanel > MySQL is where you can make a database and then add with full permissions
   the user and password needed for wp-config.php, and then you can also specify
   in wp-config.php your table_prefix and it will be added within that database 
   if not already present.
 *  [Ankur DalsaniYa](https://wordpress.org/support/users/dalsaniaankur/)
 * (@dalsaniaankur)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-create-database/#post-6367482)
 * follow steps….
 * 1. Cpanel in create user
    2. Create datebase 3. Add full permissions this database
   and add user permission 4. After add wp-config.php file in this info
 *     ```
       /* MySQL settings */
       define( 'DB_NAME',     'database_name_here' );
       define( 'DB_USER',     'username_here' );
       define( 'DB_PASSWORD', 'password_here' );
       define( 'DB_HOST',     'localhost' );
       define( 'DB_CHARSET',  'utf8' );
   
       /* MySQL database table prefix. */
       $table_prefix = 'wp_';
       ```
   
 *  [adc103](https://wordpress.org/support/users/adc103/)
 * (@adc103)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-create-database/#post-6367485)
 * Hi I also am having a problem installing my WordPress due to MySql. As my host
   im using freehostingnoads. When I create a database it groups them together so
   i create the user and the database together. It doesnt ask for the premissions
   to give to the user and it also has a string of numbers behind my name for the
   database name and my username. Ive put my info into the wp-config.php file with
   and without the string of letters with the correct password and it wont accept
   anything. When i put in my link to install word press it just shows a page saying“
   Error establishing a database connection” and says to make sure i have all my
   information in correct. I’ve tried it multiple times and nothing works.
 * On another note i can’t install it with the one press button because it installs
   an old version of wordpress and it wont let me update it.
 * Also if possible i really dont want to move hosts since i dont want to go through
   that trouble again.
 * So, if you have any clue on what i can do it would really be appreciated! Thanks!
 *  [website-design1](https://wordpress.org/support/users/website-design1/)
 * (@website-design1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/how-do-i-create-database/#post-6367496)
 * hey there !
 * I really suggest you to check out this awesome article on creating database in
   wordpress using mysql in cpanel with images:
 * [http://www.interspire.com/content/2006/04/04/how-to-create-a-mysql-database-in-cpanel/](http://www.interspire.com/content/2006/04/04/how-to-create-a-mysql-database-in-cpanel/)
 * [https://www.namecheap.com/support/knowledgebase/article.aspx/9363/2180/how-to-create-and-maintain-mysql-databases-in-cpanel](https://www.namecheap.com/support/knowledgebase/article.aspx/9363/2180/how-to-create-and-maintain-mysql-databases-in-cpanel)
 * _[Unnecessary link moderated – Please don’t spam]_
 *  [Deb Grantham](https://wordpress.org/support/users/deb-grantham/)
 * (@deb-grantham)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/how-do-i-create-database/#post-6367499)
 * I am new to WordPress. What is Cpanel? I can’t find it anywhere on my site or
   the WordPress site.
 *  [Squidpeg9](https://wordpress.org/support/users/squidpeg9/)
 * (@squidpeg9)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/how-do-i-create-database/#post-6367510)
 * One important piece of the puzzle is having the correct host set in wp-config.
   Depending on your webhost, you may be able to use “localhost”, but this is not
   always the case.
 * Here’s a helpful link to _possible_ DB_HOST values depending on webhost: [https://codex.wordpress.org/Editing_wp-config.php#Possible_DB_HOST_values](https://codex.wordpress.org/Editing_wp-config.php#Possible_DB_HOST_values)
 * If you are 100% positive you have the right username, password, and host in the
   wp-config file, and you are still not able to connect, there is probably an issue
   with the permissions of that database. Some hosting providers let you set database
   permissions to allow outside connections, and some will require you to contact
   them to do it for you. Your best bet in this situation is to contact your webhost
   to find out.
 * **Deb Grantham** – cPanel will not be on your site or WordPress, it is the backend
   of your site, and your webhost would have provided the login details for that.
   If you are having trouble with this, please create a new thread in the support
   forum or contact your hosting company.

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

The topic ‘How do I create Database?’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 7 participants
 * Last reply from: [Squidpeg9](https://wordpress.org/support/users/squidpeg9/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/how-do-i-create-database/#post-6367510)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
