• 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @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’);

    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: https://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 https://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

    (@alzbithkhan123)

    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.