Madisonrep - Báo tin tức với các bài phóng sự video clip độc quyền
  • Home
  • Bất Động Sản
  • Công Nghệ
  • Kinh Doanh
No Result
View All Result
  • Home
  • Bất Động Sản
  • Công Nghệ
  • Kinh Doanh
No Result
View All Result
Madisonrep - Báo tin tức với các bài phóng sự video clip độc quyền
No Result
View All Result

How to fix "Error establishing a database connection" | WP Learning Lab

admin by admin
May 22, 2020
in Công Nghệ
48
How to fix "Error establishing a database connection" | WP Learning Lab



Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist:

Grab your free 10-Point WP Security Checklist:

Error establishing database connection is a very common error that I bet every WordPress user has encountered at some point. Luckily the fix is very easy and there are two ways to fix it.

Nearly every time this error is caused by incorrect or incomplete database information in your wp-config.php file or no linking the database user to the database.

Let’s tackle the first one first.

Incorrect or incomplete database information in your wp-config.php

All you have to do here is double check your MySQL database name, database username and the database user password. Make sure the credentials you have in the wp-config.php match exactly to the ones you created.

If you’re not sure where to find the ones you created, log into your cPanel account.

Then click on MySQL databases. That will show you all the database in your hosting account. Find the correct on for the wp-config.php file you’re working on. Make sure the db name matches what’s in the file.

Then find the db username you have linked to that database and what’s in the wp-config.php file matches exactly what’s associated with your database.

If you don’t remember the password, or have it noted somewhere, you can generated a new password for the user and put that into the wp-config.php.

While you’re here, you can make sure that the second possible reason for the error is taken care of.

At the bottom of the MySQL database page you will be able to link the database user to the database. Make sure they are linked and the correct privileges are set. If you’re unsure of the proper privileges, choose them all.

Now save the db user to database association. Save the wp-config.php file you were updating.

Then go to the page that was generating the error establishing database connection error and reload that page. Everything should be working normally now.

I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.

————–

If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.

Connect with us:

WP Learning Lab Channel:

Facebook:

Twitter:

Google Plus:

Pinterest:

Nguồn: https://madisonrep.org

Xem thêm bài viết khác: https://madisonrep.org/cong-nghe

Xem thêm Bài Viết:

  • Bật mí cách chuyển file scan sang word nhanh nhất
  • Tuyệt chiêu sạc pin iphone đúng cách giúp kéo dài tuổi thọ pin
  • Bất ngờ tài khoản netflix premium miễn phí dành cho bạn
  • how to check window bit 32 or 64 of your pc
  • How to install Eclipse on Windows 8.1
Tags: Youtube
Previous Post

Điểm tin 90+ ngày 19/5 | Bayern níu kéo Coutinho; Barca không thể có De Ligt

Next Post

UNBOXING+REVIEW - adidas UltraBOOST Parley

Next Post
UNBOXING+REVIEW – adidas UltraBOOST Parley

UNBOXING+REVIEW - adidas UltraBOOST Parley

Comments 48

  1. Jalitza Nuñez says:
    3 years ago

    Thanks!! This video makes my day happier

    Reply
  2. WATCH AND LEARN says:
    3 years ago

    Thank you soo much sir my problem has been sole….

    Reply
  3. Potat0 Chip says:
    3 years ago

    I did this with a subdomain but it still doesnt work 🙁

    Reply
  4. Lee-ann Duarte says:
    3 years ago

    Huge help, Thank you

    Reply
  5. Bathtub Bulletin says:
    3 years ago

    Thank you so much. It worked!

    Reply
  6. hacker dk says:
    3 years ago

    thank you boss!!!

    Reply
  7. Gopal kumawat says:
    3 years ago

    Thank you. Very much

    Reply
  8. Majid Showghi says:
    3 years ago

    Thanks. You solved my issue 🙂

    Reply
  9. ernesto a says:
    3 years ago

    I updated my WordPress and apparently my database was deleted :S Is there a solution? I don't know if there's a way to create again the database or something, I don't have a backup of it, so perhaps I'm screwed. Your videos always have save me, thanks so much for this content!

    Reply
  10. Junaid Ahmed Baloch says:
    3 years ago

    Thank you, it works. I'm using localhost and was unable to create a database. this video helps me

    Reply
  11. Charles Richet says:
    3 years ago

    Thanks from Brazil!!!

    Reply
  12. Aman Silawat says:
    3 years ago

    thank you bro…

    Reply
  13. Jatin Sain says:
    3 years ago

    Thank you 🙂

    Reply
  14. M Löv says:
    3 years ago

    I noticed that everytime i try to add or edit something on my website, it gets cut off and then i get this error message, it useually disappears in a while, but it wastes a lot of time because i have to wait until i can use my website again , really boring.

    Reply
  15. TallBoy876 says:
    3 years ago

    I'm running localhost with this same issue. Went to the database and did like you instructed and it works. Thank you so much. I didn't experience this issue with the same setup on other machines.

    Reply
  16. Camilo Andrés says:
    3 years ago

    Thanks, this video fixed my day!

    Reply
  17. Akash Aqib says:
    3 years ago

    Hi, When I install wp rocket speed up plugin into the WordPress & save changes, then it shows this database error. any reason for that, I am wired now. pls, help.

    Reply
  18. MrFemo89 says:
    3 years ago

    thanks a lot! Worked perfectly

    Reply
  19. Mike Bravo says:
    3 years ago

    ty!

    Reply
  20. Trinath Pattanayak says:
    3 years ago

    Thanks

    Reply
  21. Josi says:
    3 years ago

    I am really worried my website was completely normal I haven't worked on this for many days, but yesterday I open and it was normal. Today I got the error 408 timeout request and then later "Error establishing a database connection". Then later open normally. I check and I have this database username(like on your video). Can this happen again? I am worried because this site is for a client and he bought his hosting with a third company that doesn't give me full access to the admin panel, probably because they have many websites there. Just weird.

    Reply
  22. Quamar Roshan says:
    3 years ago

    hello sir
    actually I was used wordpress database reset after that it's showing

    """"""""Error establishing a database connection

    If your site does not display, please contact the owner of this network. If you are the owner of this network please check that MySQL is running properly and all tables are error free.

    Could not find site www.xxxxxxxxxx.info. Searched for table wp_blogs in database i5368684_wp1. Is that right?

    What do I do now? Read the bug report page. Some of the guidelines there may help you figure out what went wrong. If you’re still stuck with this message, then check that your database contains the following tables:

    wp_users

    wp_usermeta

    wp_blogs

    wp_signups

    wp_site

    wp_sitemeta

    wp_registration_log

    wp_blog_versions"""""""

    What can I do now????????????
    Please help me

    Reply
  23. Quizziin says:
    3 years ago

    Thanks !! Really helpful !!

    Reply
  24. Jay Bernardo says:
    3 years ago

    Hello, can you help me to fix this error? /wp-includes/class-wp-hook.php on line 286. thank you in advance

    Reply
  25. Gh Go Online says:
    3 years ago

    Thanks so much, i spent the last 4 hours trying to fix this until you came my way

    Reply
  26. Waqas Ahmad says:
    3 years ago

    not working for me

    Reply
  27. Vlad Romanov says:
    3 years ago

    Did not work 5/3/2018

    Reply
  28. AfricanFlightStar says:
    3 years ago

    I've found some of your videos useful, but this one – Sorry, but this is not clear. The explanation of exactly how to select he correct database from many in a list, and then add a new user and password, and then tie that user & password to the wp-config.php file, was not made clear. In fact it seemed like you edited the video and cut out your voice for a second right when you were explaining how to add a new user.
    I have a older 2015 copy of my GoDaddy WP website which I'm trying to load into a new GoDaddy hosting account now, and although I followed all your well explained steps in your very good video on how to manually upload /reinstall a WP website, I still can't get the old site to link into the new installation of WordPress. I'll keep looking for a solution.

    Reply
  29. CosmetologyFoodNFashion says:
    3 years ago

    How do I get to the CPanel? Please I need HELP! I'm getting an error message saying, Error establishing a database connection

    Reply
  30. Seftezey says:
    3 years ago

    How do i get cpanel

    Reply
  31. Top APPS says:
    3 years ago

    sir please help me i sent my wordpress acount please recover it

    Reply
  32. Top APPS says:
    3 years ago

    bro iam using 000webhost but my sql isnt seen plz fix

    Reply
  33. Sir Kostas says:
    3 years ago

    Thank you very much!!

    Reply
  34. John Bill says:
    3 years ago

    Thank you, you're amazing!
    Keep it up.

    Reply
  35. ManuAlvarado22 says:
    3 years ago

    Awesome!

    Reply
  36. Michael Mayo says:
    3 years ago

    I've already did this, and also i have a correct setup wp-config. .but still came up with this error..

    Reply
  37. Stavro Xhardha says:
    3 years ago

    I still call it the white screen of death 😛 ANW thank you very much

    Reply
  38. Romy Kim says:
    3 years ago

    I realized my problem. I got a zip file from previous designer and realized he used long address(?) like http://….. instead of simply page name. So, it screws up everything on localhost. Is there any quick way to fix this ?

    Reply
  39. Romy Kim says:
    3 years ago

    Wow. You saved me. Somehow, my problem isn't yet gone, but got me a step closer. I was about to quit this job. Thank you !!!!

    Reply
  40. Cary Huff says:
    3 years ago

    Bjorn,
    You don't know how you saved me. I can't thank you enough.

    Reply
  41. How To learn says:
    3 years ago

    Hello
    Actually in my sql database it is showing
    Create New Database
    Current Databases
    MySQL Users
    Add New User

    how to solve the issue

    Reply
  42. Aryan Sharma says:
    3 years ago

    Sir Help Me Please
    My Website Hqpoint.org get 5-10 times Error 502 Bad Gateway in a day after installing any plugin .^_^;
    please give me solution😅😅😅😅

    Reply
  43. Aryan Sharma says:
    3 years ago

    sir when I apply these settings nothing happens. error not fixed

    Reply
  44. Shishir Udupa says:
    3 years ago

    how to do this thing in AWS pls can u upload a video

    Reply
  45. imobeus1 says:
    3 years ago

    You're the shit!!
    Thanks for uploading!

    Reply
  46. Jacques van Wyk says:
    3 years ago

    I want to kiss you(no homo) lol thx

    Reply
  47. Tolulope Dahunsi says:
    3 years ago

    WOW works like a charm with just one click. the error occured after i deleted the contact form7 plugin from wordpress dashboard. still wondering why this happened. Pleaselet me know if u have any idea. Thanks

    Reply
  48. Zeeshan Dehlvi says:
    3 years ago

    brother i m using xampp localhost .. so my problem is I have copied my whole wordpress website folder from ftp server to Xampp localhost .. it is showing the same error . what should i do now .

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Xem Thêm

Dự án Thành phố Cà Phê là dự án có tổ hợp nhà liên kế và nhà thương mại liên kế

Thông tin dự án nhà đất Đắk Lắk tiêu biểu nhất hiện nay

November 30, 2022

Quy hoạch Cam Lâm trở thành cửa ngõ Việt Nam vươn tầm thế giới

October 21, 2022
Hình ảnh chung cư Thanh Xuân 2

Chia sẻ những kinh nghiệm cần lưu ý khi mua dự án chung cư Thanh Xuân

October 13, 2022
GIỚI THIỆU CHUNG CƯ THE MANOR CENTER PARK

GIỚI THIỆU CHUNG CƯ THE MANOR CENTER PARK

October 6, 2022
Hình ảnh bán đất Đống Đa 4

Cách bán đất Đống Đa nhanh nhất mà bạn có thể tham khảo

October 5, 2022
Hình ảnh bán nhà Đống Đa 4

Kinh nghiệm bán nhà Đống Đa nhanh chóng hiệu quả

September 28, 2022
  • Giới Thiệu
  • Chính Sách Bảo Mật
  • Liên Hệ

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Bất Động Sản
  • Công Nghệ
  • Kinh Doanh

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.