Error establishing a database connection error in wordpress [SOLVED]

Поділитися
Вставка
  • Опубліковано 17 жов 2024
  • How to solve "Error establishing a database connection" error in wordpress ? We will describe A quick solution of "Error establishing a database connection" A description on How to solve wp-config issue?
    STEP 1 : Login to your cPanel.
    STEP 2 : Go to Mysql database.
    STEP 3 : Change/Reset Mysql Database password and paste it to wp-config file. Also cross-check db hostname , Mysql user etc.
    STEP 4 : Once you have syncronized the wordpress db credentials, You're done.

КОМЕНТАРІ • 233

  • @spugmarohom6038
    @spugmarohom6038 8 місяців тому

    WOAH . . . I was so nervous for the first time and after I had applied this video. NOW IT WORKS! Thank you so much.

  • @PiyushSharma-jz4ly
    @PiyushSharma-jz4ly 4 роки тому

    You're amazing bhai 😘 bhagwan apko bohot sare bache de

  • @aaryagkquiz4347
    @aaryagkquiz4347 Рік тому

    Bhai hamne apne website per 70 post kiye the uske baad database errors aa rha h to aapke द्वारा बताया गया solution को करेंगे तो क्या वह सभी पोस्ट डिलीट हो जाएँगे ' plz reply

  • @AyuelMonykuch1
    @AyuelMonykuch1 2 роки тому +1

    Thank you so much for everything, after watching more videos, and have not gotten any answer. Right now at the right place. I thank you again.

  • @anmolsrivastava9206
    @anmolsrivastava9206 3 роки тому +1

    Hello sir,
    I resetup my cpanel due to some reasons, and after adding database, making and connecting user to database, and when I try to install the WordPress it is showing that "database connection failed" and after checking in files I noticed that there is no confic.php file in my publichtml section there is only config sample file..
    What will I do now... Please help

    • @RedServerHost
      @RedServerHost  3 роки тому

      Yes the guide will still work in this case as well.

  • @MercysCreativeStudio
    @MercysCreativeStudio 3 роки тому +3

    Your video helped a huge deal. I am a new found subscriber on server issues.

  • @excitedboy2779
    @excitedboy2779 2 місяці тому +1

    How it will work on Xampp please help

  • @gauravchauhan1696
    @gauravchauhan1696 4 роки тому +1

    I am migrating domain with duplicator plugin while installing database I am getting the same error and fixed wo-config as shown still problem exists...so the question is in this cas should i put the user name and password of- from domain which i am transferring or in which i am transferring

    • @RedServerHost
      @RedServerHost  4 роки тому +1

      get the db credential from destination server not source server.
      I mean, in which you are finally going to host.

    • @gauravchauhan1696
      @gauravchauhan1696 4 роки тому

      @@RedServerHost ok now it's working

  • @sherazmushtaq
    @sherazmushtaq 2 роки тому +1

    I solved my database error with the help of your tutorial. Thank you so much. In my case user name of database was wrong in php file. How does it happen? I shared password with my client's so called administrator. Did he try to tease me or to show his superiority to my client? or it happens just like that?

  • @merijan3609
    @merijan3609 3 роки тому

    Sir many bi search ma yehi likha but mujhy ye login wali cheeze show. Ni howi kya iyse ko phely download krna prta ha computer n

  • @emmanueltimothy
    @emmanueltimothy 3 роки тому

    wow... you saved me, i'm back in business. tomorrow i have a presentation and was getting worried. thanks a lot,

  • @3rdtwirl494
    @3rdtwirl494 Рік тому

    my website disapeared from the file manager. but i think i know the database can i just select check database ?

  • @medihopehospitals
    @medihopehospitals 4 роки тому +1

    I have change hosting provider. Also taken backup from one hosting provder to another hosting provider then uploaded all files then trying to load my website it says "Error establishing a database connection" how to resolve it please.

    • @RedServerHost
      @RedServerHost  4 роки тому

      Reupload the database after recreating a new one. And then follow this video. It will surely work. Also, We keep on uploading such helpful contents. Subscribe our channel to be in touch with us.

  • @DAY-ht4go
    @DAY-ht4go 5 років тому

    Finally I could fix it. You saved me from paying $10 to a freelancer.

    • @RedServerHost
      @RedServerHost  4 роки тому

      Glad to hear that Anupam Das, thanks for watching!
      Regards,
      Team Redserverhost

  • @jakapanduga7014
    @jakapanduga7014 4 роки тому

    stil not work :" after typing my URL/cpanel, it didn't log into cpanel, instead to cwp. how to fix it?

  • @Speed-bi3kc
    @Speed-bi3kc 4 роки тому

    if they asked me to reinstall wordpress should i do it.?

  • @taleemeahlebait689
    @taleemeahlebait689 3 роки тому

    But my database not opening its showing the mysqlserver is currently offline

  • @ajaygarg8885
    @ajaygarg8885 4 роки тому

    Bro I have done this same but yet problem not solved. It shows maximum user exceeded max connection per hour

  • @gauravpratap1027
    @gauravpratap1027 6 років тому +1

    Worked like charm !!! You solved my trouble... Thankyou thankyou so much.... your hosting is really amazing......

  • @worldaffairs07
    @worldaffairs07 4 роки тому

    it doesnt work still... Does it take time after the password changes from conf. file?

    • @RedServerHost
      @RedServerHost  4 роки тому

      Hello hollywoods magazine!!
      No it doesn't take time after you change the password form wp-conf file. However you can try pressing ctrl+F5 to force an update, disregarding any cache. If it still not work then cross-check the database username, MySQL user, database password in the MySQL section as well as in the wp-config file. Ensure that the credentials should be same at both places.
      Regards,
      Team Redserverhost

  • @nizasilwamba
    @nizasilwamba 2 роки тому

    Thanks a lot. Solved my problem for 3 websites perfectly.

  • @Hustlingnobles
    @Hustlingnobles 2 роки тому +2

    Man thanks so much for this vital information, you don't know how I feel right now

    • @RedServerHost
      @RedServerHost  6 місяців тому

      We know that. Glad to read this.

  • @deana8696
    @deana8696 6 років тому

    This doesnt work for me. I've done this procedure so many times. I've created a testconnection.php just to check and credentials are ok but still this error comes up. Plus I have got missing tables wp_user, wp_options and wp_;links. What I am suppoosed to do? I have no generated backup

    • @AndroidLegend
      @AndroidLegend 5 років тому

      have you solved your problem? what was the problem? I am.having same problem

    • @RedServerHost
      @RedServerHost  5 років тому

      This happens when your database gets deleted or tables are missing.
      If you don't have backup then we are sorry. This is irreparable.
      Contact Redserverhost support team if wordpress hosting along with regular backups.

  • @ROSCOEV
    @ROSCOEV 5 років тому

    Watched a few but yours explained all the main points the others didn't working now cheers.

    • @RedServerHost
      @RedServerHost  5 років тому

      Thanks a lot. You guys motivate us. :)

  • @maynkkapoor5654
    @maynkkapoor5654 Рік тому

    Thanks buddy for provide this valuable information
    I am using woozone when i importing products that showing errors "Error trying to add product to database" if you have this solution so do make video for this error. Thank you

  • @Business-Ideas-shawn
    @Business-Ideas-shawn 5 років тому

    I get this error daily...whats permanent solution??

    • @RedServerHost
      @RedServerHost  5 років тому

      If you are getting this error daily, then probably the reason is one of the below:
      1. Someone is changing the password or wp-config.php file again and again.
      2. Your server's database is restarted or goes down everyday.
      3. Your internet connection is blocking connections with the database over the default port 3306.
      The solution to your problems are:
      1. Check your error_log file and cpanel > errors for possible errors.
      2. Keep a check on the last logged in IP address which is shown in your cPanel.
      3. Consult your hosting provider with the uptime of database server (SQL server).
      4. Keep a check on last modified files inside cpanel > file manager > public_html
      Hope these helps. Warm Regards - Team Red Server Host.

  • @SandeepSingh-dn8yj
    @SandeepSingh-dn8yj 6 років тому

    I dont understand. it is not working the same here.
    I changed the port in Xamp from 3306 to 3307. Afterwards it has come showing "Error establishing a database connection." Need a help.

    • @RedServerHost
      @RedServerHost  5 років тому

      Dear Sandeep, This video tutorial was meant only for those who are using cPanel (REAL SERVER ) but not localhost or xamp.
      Anyways, we can help you out. Do you have a hosting with Redserverhost.com
      Atleast RED11 host

  • @corporatedeals1152
    @corporatedeals1152 3 роки тому

    Wow....Finally, I solve the issue..Thanks Red Server

  • @powerplay5271
    @powerplay5271 3 роки тому

    Give 1000000 like for the correct guidance
    Thank you

  • @sreegunassorchondrobormon3918

    Thank you so much sir I'm very happy to watch your video. Problem is solved. Thanks a lot!

  • @golamkibria6919
    @golamkibria6919 4 роки тому +2

    It's perfect person for this problem.

  • @syedraghib8279
    @syedraghib8279 4 роки тому +1

    it will work on subdomain also can we apply this steps on subdomain also

    • @RedServerHost
      @RedServerHost  4 роки тому

      Yes. why not ! Also, We keep on uploading such helpful contents. Subscribe our channel to be in touch with us.

  • @saniaanwer2816
    @saniaanwer2816 3 роки тому

    What to do if I delete database by mistake?🥺please help

  • @ranishapagadam7628
    @ranishapagadam7628 2 роки тому +1

    I tried this...but still not working

    • @RedServerHost
      @RedServerHost  2 роки тому

      Then the problem can be in your web hosting server. Please transfer your server to our web hosting service. We will help you.

  • @androgamerz48
    @androgamerz48 3 роки тому

    Its showing in a website, how to fix that?

  • @PneumaticSystems
    @PneumaticSystems 2 роки тому

    when i try to open my sql or php i got thats message
    adminbin Cpanel/cpmysql/DBCACHE: exit 255

  • @esther5720
    @esther5720 25 днів тому

    My website is up, thank you so much for this video

  • @gupsupkumar9587
    @gupsupkumar9587 4 роки тому

    Here also some problems in installing word press plz help

  • @MrTechX
    @MrTechX 5 років тому +1

    Thanks Man! Solved my issue...keep doing this Awesome Work!

    • @RedServerHost
      @RedServerHost  5 років тому

      Very thankful. Must visit redserverhost for such awesome services too.

  • @linkofworld9698
    @linkofworld9698 3 роки тому

    can you help Can’t select database

  • @akashj.6154
    @akashj.6154 6 років тому

    How can I fix connection lost, saving has been disabled until you are reconnected.... Problem.
    Thanks

    • @RedServerHost
      @RedServerHost  5 років тому

      Use tor browser. Or else open your root server, go to WHM >> Tweak settings. Disable cookies.

  • @skp7180
    @skp7180 4 роки тому

    Hey there,
    I already made all the changes and it still shows the same error....

    • @iyanzeframes8214
      @iyanzeframes8214 3 роки тому

      Make sure you make changes to your password fully
      '

  • @dormdevdiaries
    @dormdevdiaries 3 роки тому +1

    Thanks a lot. I've fixed successfully with this tutorial

  • @juanalvarezs.7459
    @juanalvarezs.7459 5 років тому

    I followed steps but i still got the same problem , please your help

    • @RedServerHost
      @RedServerHost  5 років тому

      @juan Please change db password and write db name, db user, and db pass very carefully in wp-config.php file. Because this error mainly occurs only when one of the three things are wrong written in wp-config file.
      Contact Redserverhost support team if still you are facing issue.

  • @irohaemmanuellawrence2520
    @irohaemmanuellawrence2520 5 років тому

    i love you sir... God just used you to save my life

  • @realestateinchennai7928
    @realestateinchennai7928 4 роки тому +1

    my problem not yet sloved. anyone can help me

  • @deccancutietv1020
    @deccancutietv1020 3 роки тому

    thanks thanks thanks a lot.... love you very much brother. you just saved my life, hardwork. Just subscribed!!!

  • @explanationsite
    @explanationsite 2 роки тому

    How tto know that database details

  • @SaifulIslam-yc8rh
    @SaifulIslam-yc8rh 4 роки тому

    Today i solved my problem...thanks dear..

  • @rashadmustafa
    @rashadmustafa 4 роки тому +3

    I can't explain you how much you hepled to me, lots of thanks to you for your help !!!

  • @chandrakantpatil7134
    @chandrakantpatil7134 4 роки тому +2

    Such a nice explanation👌👌.... Thank you very much Sir

  • @jamiethomas8629
    @jamiethomas8629 5 років тому

    hi i dont have the wp-config.php file? can you help

    • @RedServerHost
      @RedServerHost  4 роки тому

      Hey jamie Thomas this is the only reason you are facing this error establishing database connection in your WordPress site because this wp-config file contains information about the database, username, and password. This information allows WordPress to communicate with the database to store and retrieve data.
      You can either run your backups or the wp-config.php can be downloaded from here generatewp.com/wp-config/
      As per my guess you are installing wordpress manually so you need to run the wordpress installer by visiting your wordpress url from your browser
      Regards,
      Team Redserverhost

  • @kush0602
    @kush0602 5 років тому +1

    Issue still not solved brother.. help me??

    • @gauravpratap1027
      @gauravpratap1027 5 років тому

      Please elaborate. What issue are you facing ?

    • @RedServerHost
      @RedServerHost  5 років тому

      Sure, We will help you. Just double cross check wp-config.php This file contails wrong db user and pass. We are sure, This is the main reason of your issue.

    • @RedServerHost
      @RedServerHost  5 років тому

      Please provide me link or your domain name where i can see this error.

    • @kush0602
      @kush0602 5 років тому

      @@RedServerHost
      thanks brother for your concern.. but now it is solved. The issue occurred due database table got corrupted
      ua-cam.com/video/3LAZE6EXo6g/v-deo.html
      this video helped me..

  • @kapilparjapati1632
    @kapilparjapati1632 4 роки тому +1

    भाई जो ब्लॉग डले हुवे थे वे वापिस नही आयगे मेरे से डेटा बेस डिलीट हो गया

    • @RedServerHost
      @RedServerHost  4 роки тому

      If database is deleted, it cannot be recovered. Also, We keep on uploading such helpful contents. Subscribe our channel to be in touch with us.

  • @RSITSOnline
    @RSITSOnline 8 місяців тому

    Thanks but it's not working?

  • @devaiah5915
    @devaiah5915 4 роки тому

    Plz help me I can't fix it

  • @moeezahmad5844
    @moeezahmad5844 4 роки тому +1

    brother there is no wpconfig.php in my publichtml folder ??

    • @RedServerHost
      @RedServerHost  4 роки тому +1

      This means someone has deleted your wordpress installation files. Please reinstall wordpress by using softaculous.

  • @GyaanKa_Adda
    @GyaanKa_Adda 5 років тому

    Thank you. How can I upload previous crawled content post

    • @RedServerHost
      @RedServerHost  5 років тому

      This can only be done if you have them in your database. Check your backup. I those posts are present in PHPmyADMIN then only you wil be able to see those posts and its content.
      Contact Redserverhost support team if still you are facing some major issue.

  • @KishorKumarGupta
    @KishorKumarGupta 4 роки тому +1

    I can't explain you how much you hepled to me, lots of thanks to you for your help thank you bro

    • @RedServerHost
      @RedServerHost  4 роки тому +1

      Really very thankful for the appreciation. We keep on uploading such helpful contents. Subscribe our channel to be in touch with us.

  • @aniketkale449
    @aniketkale449 2 роки тому

    Thank You so much sir, please carry on this great work...

  • @bdhomeohall
    @bdhomeohall 4 роки тому

    very nice solution. Thank you very much for this video, this was very helpful for me

  • @rutvi14
    @rutvi14 4 роки тому

    How to resolve following error
    You are using your maximum allotment (1) of MariaDB/MySQL databases. If you want more, contact your service provider.

  • @nodigas7001
    @nodigas7001 6 місяців тому

    Gracias 2024 y aun funciona este dato !

  • @satyamtiwari3839
    @satyamtiwari3839 5 років тому

    Please help I have not any MySQL data base

    • @RedServerHost
      @RedServerHost  5 років тому

      Please buy a small web hosting package from Redserverhost.com

  • @jacobmolekoa6106
    @jacobmolekoa6106 6 років тому

    please send me a link to download the backroud music playing on this video...

  • @abinayasree4909
    @abinayasree4909 4 роки тому

    Please help me my sql database not work

    • @RedServerHost
      @RedServerHost  4 роки тому

      If you have followed the complete video correctly then the error would definitely be fixed. However if the error still remains then i would like to suggest you to check the services whether it is up or down. You can take the help of the link given below to check the service status in cPanel.
      ua-cam.com/video/W26xigDQYeA/v-deo.html
      This will help you to find the service status in you cPanel. If any service is down consult your hosting provider.
      Regards,
      Team Redserverhost

  • @sankarlalrajak2760
    @sankarlalrajak2760 3 роки тому

    Not solve sir.. show same problem..

  • @shahzebAli2001
    @shahzebAli2001 4 роки тому +1

    i was having error max questions value reached on my WP wordpress (free hosted by awardspace.com)
    i did same as shown in video, i got my website working again !! THANKS :D

    • @RedServerHost
      @RedServerHost  4 роки тому

      You cannot understand how happy it is to see problems getting solved for people like you. Thank you for the positive feedback and your valuable comment.

  • @jovemlucrativo
    @jovemlucrativo 2 роки тому

    Tank you brother, 100%saved

  • @jaziliqbal6231
    @jaziliqbal6231 4 роки тому

    Mine not working still giving the same issue

  • @shahidAli-ph1sr
    @shahidAli-ph1sr 5 років тому

    thank you very much .....it helped me like anything 1000 likes from my end

    • @RedServerHost
      @RedServerHost  4 роки тому

      Thanks shahid amir for the feedback. Glad to hear the video really helped you.
      Regards,
      Team Redserverhost

  • @naveedeseher
    @naveedeseher 2 роки тому

    thanks man, it really helped me

  • @ChaitanyaJagtap-xo7sq
    @ChaitanyaJagtap-xo7sq 2 місяці тому +1

    C pannel is paid

  • @mdsumonhossen6103
    @mdsumonhossen6103 2 роки тому

    Helpfully video. Thank you.

  • @JaeChris-t6y
    @JaeChris-t6y Рік тому

    Thanks bro... you re angel

  • @MiguelEnriqueEncisoGonzales
    @MiguelEnriqueEncisoGonzales 4 роки тому

    Muchas gracias por el tutorial, un abrazo desde Peru

  • @AKZGALAXY
    @AKZGALAXY Рік тому +1

    Your Awesome! THX

  • @The_Caesar6186
    @The_Caesar6186 6 років тому

    Thanks now working Wordpress

  • @maryamjaved4849
    @maryamjaved4849 Рік тому

    Thank you so much Man!

  • @iyanzeframes8214
    @iyanzeframes8214 3 роки тому

    God bless you. It works

  • @CelebrityTV24
    @CelebrityTV24 6 років тому

    Thankyou so much...it works for me

  • @nampallyvarma
    @nampallyvarma 6 років тому

    Thank you very much, its resolved the problem

  • @dailyfayda9359
    @dailyfayda9359 2 роки тому

    Problem solved👍
    Thanks a lot

  • @MackoHipHop
    @MackoHipHop 5 років тому

    Problem solved, thanks a lot!

    • @RedServerHost
      @RedServerHost  4 роки тому

      Thanks for the feedback Paciej. Glad to hear it really worked, thanks for watching!
      Regards,
      Team Redserverhost

  • @Nasir361
    @Nasir361 4 роки тому

    a lot of thanks Allah may you live long with a lot of happiness

  • @sheheryarahmed8481
    @sheheryarahmed8481 4 роки тому

    It was really helpful for me

  • @mosesnkereuwem7986
    @mosesnkereuwem7986 5 років тому +1

    thanks boss you are good

    • @RedServerHost
      @RedServerHost  5 років тому

      Thank You for the appreciation, Warm Regards --- Team Red Server Host.

  • @MaleeqBarz
    @MaleeqBarz 3 роки тому +2

    life saver dude, keep em coming

  • @fardinahmed8792
    @fardinahmed8792 3 роки тому

    Thank you very much bro

  • @gauravpawar5055
    @gauravpawar5055 4 роки тому

    thank you so much for tgis valuable video, thanks a lot buddy

    • @RedServerHost
      @RedServerHost  4 роки тому

      Thank you very much. Subscribe our channel for ocean of such a knowledge.

  • @raymi1
    @raymi1 4 роки тому

    Gracias me funciono!! 24-01-2020

    • @RedServerHost
      @RedServerHost  4 роки тому

      Really very thankful for the appreciation. We keep on uploading such helpful contents. Subscribe our channel to be in touch with us.

  • @hasnainriaz708
    @hasnainriaz708 3 роки тому

    Thanks Man!

  • @CyberCobra_Gaming
    @CyberCobra_Gaming Рік тому

    Yaar abb bhi kuch nahi hua

  • @hemantkumardas3333
    @hemantkumardas3333 2 роки тому

    Thanks Sir...

  • @wp-priv
    @wp-priv Місяць тому

    Thank you so much !! :'))

  • @KamranJameel
    @KamranJameel 3 роки тому

    thank you very much

  • @bikashcreation6583
    @bikashcreation6583 3 роки тому

    thanks a lot.

  • @softwaredeveloper9193
    @softwaredeveloper9193 4 роки тому

    Weldone bro

  • @saminshohel4579
    @saminshohel4579 3 роки тому

    Love you brother

  • @kushalparikh28oct
    @kushalparikh28oct 3 роки тому

    Thank you for the save!