Title: I need help I am facing ,Error estabilising database connection
Last modified: December 23, 2019

---

# I need help I am facing ,Error estabilising database connection

 *  [alzbithkhan123](https://wordpress.org/support/users/alzbithkhan123/)
 * (@alzbithkhan123)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/error-estabilising-database-connection/)
 * I am facing the error estabilising database connection. I have installed bitnami
   wordpress and xampp wordpress but in both of these wordpress I am again and again
   facing error can someone help please
    -  This topic was modified 6 years, 3 months ago by [alzbithkhan123](https://wordpress.org/support/users/alzbithkhan123/).

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

 *  [Marcio Zebedeu](https://wordpress.org/support/users/marcio-zebedeu/)
 * (@marcio-zebedeu)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/error-estabilising-database-connection/#post-12267650)
 * Hi [@alzbithkhan123](https://wordpress.org/support/users/alzbithkhan123/)
 * Did you make the necessary database connection changes in the wp-config.php file?
 * Usually, you can find the login details around line 20 in the wp-config file.
   
   In this example the current details are:
 * define(‘DB_NAME’, ‘youDBName’);
    define(‘DB_USER’, ‘youUser’); define(‘DB_PASSWORD’,‘********’);
   define(‘DB_HOST’, ‘hostName’);
 *  [llorch](https://wordpress.org/support/users/llorch/)
 * (@llorch)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/error-estabilising-database-connection/#post-12275365)
 * I presume your trying to run wordpress on a windows machine. did you install 
   WAMP to set up Apache, MySQL and PHP. Or are you using some other package. Or
   are you using a different OS, like Linux. In which case you would install LAMP.
   If you haven’t installed your web services and have not confirmed that they are
   functional that is the first step.
    First you should run your mysql utility to
   confirm mysql is running and being accessed correctly. also you may need to define
   the port number for the mysql database host as well. it should be port 3308. 
   If that is not the port mysql is running on you will not get Apache mysql or 
   php to function correctly. and will need to name the correct port number along
   with the host name IE: localhost:3308 if that is correct. if you have not installed
   wordpress yet because of the database issue. you need to make sure that the database
   is up and running first. By using phpmyadmin or what ever mysql administration
   tools came with your web services setup. I’m assuming Wamp. Also, when mysql 
   is originally created the admin user Name and password are as follows: UserName:
   root Password: usually there is no password you must change that password once
   you are logged in to secure the database. You will need to create a new Database
   from Within Mysql that is not connected to the other databases originally created
   by the mysql install. you will need to create a new user account so your data
   will be protected, a site user name(so the new wordpress site can communicate
   with it), a password, and set permissions so that the site will have complete
   control you can restrict a bit, later. Then you should be able to simply open
   localhost in a web browser. If your using the latest version of wamp local host
   should display your Server Configuration. It is recommended that you create a
   virtual host (ie: [http://www.example.com](http://www.example.com)) that is at
   the root of one of your drives and place the wordpress files in that location.
   ie; D:\www\location of wordpress files and folders.It is also recommended that
   you move the files directly into the root folder. wordpress normally comes in
   a folder titled WordPress. It is ok to create you root folder as D:\wordpress\
   it will work from there as long as it is the root folder you chose when creating
   the virtual host location. then your just need to unzip word press at the root
   of D drive. Once you have started your WAMP server and restarted the dns services
   you should be able to access the famous wordpress 3 minute install by going to
   [http://www.example.com](http://www.example.com) and answering the questions 
   that follow. if this does not happen Let us know. and include details just saying
   you word press can’t connect to the database doesn’t offer enough information
   to discover root cause of the problem.
 *  Thread Starter [alzbithkhan123](https://wordpress.org/support/users/alzbithkhan123/)
 * (@alzbithkhan123)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/error-estabilising-database-connection/#post-12275377)
 * I am using windows. And I have installed bitnami WordPress when I installed it,
   it was all OK even I could open it and use it.when I close it, the other time
   I want to open it then it shows error.
    Even I have also installed xampp WordPress
   the same issue was with xampp.

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

The topic ‘I need help I am facing ,Error estabilising database connection’ is closed
to new replies.

## Tags

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

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 3 replies
 * 3 participants
 * Last reply from: [alzbithkhan123](https://wordpress.org/support/users/alzbithkhan123/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/error-estabilising-database-connection/#post-12275377)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
