Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Så här fixar du error vid upprättande av en anslutning till en database i WordPress

Ser du notisen ”Error establishing a database connection” i WordPress?

Detta är ett fatal error som gör din site otillgänglig för användare. Det inträffar när WordPress inte kan upprätta en anslutning till databasen. Eftersom flera faktorer kan påverka denna anslutning kan error vara lite svårt att troubleshoota för Beginner.

I den här artikeln kommer vi att visa dig hur du enkelt fixar ”Error establishing a database connection” på din WordPress site, steg för steg.

Fix the Error Establishing a Database Connection in WordPress

Vad orsakar error vid upprättande av en anslutning till en database i WordPress?

En database är en programvara som gör det enkelt att lagra, organisera och hämta data från andra program.

Som ett system för hantering av innehåll använder WordPress en database för att lagra all your content och andra data på din website. Den ansluter sedan till databasen varje gång någon besöker din website.

WordPress behöver följande information för att ansluta till databasen:

  • Namnet på din database
  • Database användarnamn och password
  • Server för databaser

Den här informationen lagras i din WordPress-konfigurationsfil, som heter wp-config.php.

Om någon av dessa uppgifter är felaktiga kommer WordPress att misslyckas med att ansluta till din server för databasen och du kommer att se felet ”Error establishing a database connection”.

Database connection error in WordPress

Det är ett av de vanligaste WordPress error. Förutom felaktiga credentials kan detta error också dyka upp om databasens server är nere eller databasfilerna är korrupta.

Med detta sagt, låt oss ta en titt på hur man fixar ”Error establishing database connection” issue i WordPress med steg-för-steg troubleshoot.

1. Kontrollera din WordPress Database Credentials

Den vanligaste orsaken till error i anslutningen till databasen är felaktiga credentials. Om du senaste har flyttat din WordPress site till en new server, så är det troligen detta som är problemet.

Credentials för din WordPress-databas lagras i filen wp-config.php. Det är konfigurationsfilen för WordPress som innehåller viktiga settings, inklusive information om databasen.

Om du ej har redigerat filen wp-config.php tidigare kan du ta en titt på vår guide för nybörjare om hur du redigerar filen wp-config.php för mer instruktioner.

Du kommer att leta efter följande rader i filen wp-config.php:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );
/** MySQL database username */
define( 'DB_USER', 'username_here' );
/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );

Här måste du se till att informationen om databasnamn, användarnamn, password och server är korrekt.

Du kan bekräfta denna information från instrumentpanelen för ditt WordPress dashboard. För denna tutorial kommer vi att använda Bluehost, men processen kommer att vara liknande för andra webbhotell paneler också.

När du har loggat in klickar du på fliken ”Website” i den vänstra kolumnen och växlar sedan till fliken ”Advanced”. Rulla sedan ner till sektionen ”Database” och klicka på knappen ”Manage” bredvid den.

Click the Manage button next to the Database section

Detta kommer att öppna sidan MySQL Databases i cPanel i ett new fönster.

Här kan du hitta ditt databasnamn och användarnamn i sektionen ”Current Database”. Tänk på att copy and paste dessa details till ett anteckningsblock så att du kan add to dem till wp-config-filen.

Find your database name and username in the Current Databases section

Därefter rullar du ner till sektionen ”Current Users”, där du kan clicka på länken ”Change Password” bredvid namnet på din database.

Du kommer då till en new vy där du kan ändra lösenordet för databasen så som du gillar det.

Change your database password

När du har bekräftat all din database details kan du ändra den informationen i din wp-config.php-fil om det behövs.

Efter det kan du försöka besöka din website igen för att se om error i anslutningen till databasen har försvunnit.

Om du fortfarande kan se error betyder det att något annat är fel.

2. Kontrollera informationen om servern för din Database

Om du är säker på att uppgifterna om databasens namn, användarnamn och password är korrekta, är det bra att kontrollera att du använder korrekt information om databasens server.

De flesta webbhotell för WordPress använder localhost som server för din database. Vissa hanterade WordPress-värdföretag använder dock separata servrar för att servera databaser. I så fall kommer din databas serverinformation inte att vara localhost.

Detta innebär att du måste kontakta ditt webbhotell för WordPress för att bekräfta dessa detaljer.

3. Reparera WordPress Database

Nu kanske du får ett annat error i wp-admin adminpanelen som gillar ”One or more database tables are unavailable” eller ”The database may need to be repaired”. I så fall måste du reparera din database.

Du kan göra detta genom att lägga till följande rad i din wp-config.php-fil. Se till att add to den precis före ”That’s all, stop editing! Trevlig blogg”:

define('WP_ALLOW_REPAIR', true);

När du har gjort det kan du se inställningarna genom att besöka den här page: http://www.yoursite.com/wp-admin/maint/repair.php. Se bara till att ersätta yoursite.com med ditt eget domain name.

Här måste du klicka på knappen ”Repair Database” för att starta processen.

Repair WordPress database

Note: Användaren behöver ej vara inloggad för att komma åt reparationssidan för databasen. När du är klar med att reparera och optimera din database, se till att ta bort den här kodraden från din wp-config.php.

Men om du inte vill add to någon kod till din site, kan du också reparera din database från ditt webbhotell kontos cPanel.

Gå vidare och besök ditt webbhotell konto, där du måste öppna sidan ”Websites” från den vänstra kolumnen. Gå sedan till tabben ”Advanced” och klicka på knappen ”Manage” i sectionen ”Database”.

Click the Manage button next to the Database section

Detta kommer att öppna cPanel i en new tab. Här rullar du ner till ”Modify Databases” section och väljer namnet på din database från ”Repair Database” dropdown menu.

När du har gjort det klickar du bara på knappen ”Reparera databas” för att starta processen.

Click the Repair database button

Webbhotellets panel kommer nu automatiskt att reparera din database åt you.

När processen är completed kommer du också att se ett success message.

Database repair success message

You can now visit your WordPress site to see whether the error has been resolved or ej.

4. Kontrollera om din server i databasen är nere

Om allt verkar vara korrekt och WordPress fortfarande inte kan anslutas till databasen, kan din databasserver (MySQL server) vara nere.

Detta kan hända på grund av tung trafik på en server. Din server kan helt enkelt inte hantera hämtar (särskilt när du har delade webbhotell).

På grund av detta kommer din webbplats att bli långsam och kan till och med mata ut error för vissa användare. I det här fallet bör du ta ett telefonsamtal eller chattsupport med din hosting provider och fråga dem om din MySQL server är responsiv.

Om du dessutom har andra webbplatser som körs på samma server kan du kontrollera dessa webbplatser för att bekräfta att din SQL-server är nere.

Om du ej har någon annan site på samma webbhotell account, så går du bara till din dashboard och byter till tabben ”Advanced”.

Därefter klickar du på knappen ”Hantera” bredvid phpMyAdmin section.

Click the Manage button next to the PHPMyAdmin option

Detta öppnar phpMyAdmin i ett nytt fönster, där du måste klicka på alternativet ”Database” högst upp.

Därefter klickar du på namnet på din database för att komma åt dess Settings. Om du kan göra det, är det dags för dig att kontrollera om din databas användare har tillräckliga behörigheter.

Connect PHPMyAdmin with your database

För att göra detta måste du skapa en new fil som heter testconnection.php och klistra in följande kod i den:

<?php
$link = mysqli_connect('localhost', 'username', 'password');
if (!$link) {
die('Could not connect: ' . mysqli_error());
}
echo 'Connected successfully';
mysqli_close($link);
?>

När du klistrar in koden, se till att ersätta användarnamn och password med dina egna. Du kan nu uploada filen till din website och komma åt den via en web browser.

Om skriptet ansluts utan problem betyder det att din användare har tillräcklig behörighet och att det är något annat som orsakar error.

Nu måste du gå tillbaka till din wp-config-fil och skanna den för att se till att alla detaljer är korrekta och utan några stavfel.

Ytterligare lösningar som har fungerat för användare

Om de ovan nämnda felsökningstipsen inte lyckas fixa felet i anslutningen till databasen på din webbplats kan du prova dessa ytterligare steg.

Som våra användare har rapporterat har dessa steg hjälpt några av dem att lösa error i anslutning till databasen på sina webbplatser.

1. Update URL:en för WordPress site

Du kan försöka updating URL:en för WordPress site med hjälp av phpMyAdmin i cPanel.

Gå bara in på phpMyAdmin från din dashboard på webbhotellet och välj din WordPress database från listan.

Följ detta genom att gå till SQL-menyn högst upp och enter följande MySQL sökning:

UPDATE wp_options SET option_value='YOUR_SITE_URL' WHERE option_name='siteurl'

Det ska se ut så här:

Change site URL

Glöm inte att ange din egen site URL och ändra wp_options till ditt eget tabellnamn, eftersom du kan ha ändrat WordPress tabellprefix.

2. Starta om web server

Användare på dedikerade servrar, språkversioner och virtuella privata servrar (VPS) kan försöka starta om sina servrar.

Detta kommer att starta om din web server och database server, vilket kan fixa några tillfälliga problem som orsakar error.

3. Be om hjälp

Om allt annat Misslyckas, då kan du behöva kontakta ditt webbhotell. Alla bra webbhotell för WordPress kommer att hjälpa dig att troubleshoota problemet, peka dig i rätt riktning eller till och med fixa det åt dig.

Du kan också hyra WordPress utvecklare med en plattform som WPBeginner Pro Services för att hjälpa dig fixa detta issue till rimliga priser. Vi har ett dedikerat team av expertutvecklare som du kan lita på för att lösa alla dina WordPress issues.

WPBeginner Pro Services

Dessutom kan du använda tjänsten för underhåll av din webbplats, reparation av hackad webbplats, hastighetsoptimering, ombyggnad av webbplats och sökmotorsoptimering.

Vi hoppas att den här artikeln hjälpte dig att fixa ”Error establishing a database connection” issue i WordPress. Du kanske också vill se vår guide till felsökning av WordPress för tips om hur du löser WordPress issues på egen hand, eller våra expertval av de bästa tools för WordPress frilansare och utvecklare.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

665 kommentarerLämna ett svar

  1. Syed Balkhi

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Arafat

    Sometimes when I click on the ”Publish” button to post a new article on my WordPress blog, then this error message appears:

    ””Error establishing a database connection… 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 localhost. This could mean your host’s database server is down…..””

    Despite the error message appears, my post got published and there is no problem with visiting my site. This error does not come after each post publication. Sometimes it occurs. (My hosting reseller provider changed my server some days ago and this problem began after coming to the new server) What is the problem and how to solve it, please tell …… Thanks.

    • Editorial Staff

      It sounds like that you are having a memory issue on the new server.

      Administratör

  3. Quinton

    The wp-config.php fix worked for me!! Thanks so much!

  4. Josh

    I found a github repo which restarts the mysql server of wordpress if there is a database error using node.js http://goo.gl/gnXLR

  5. Brian Deyo

    The quick snippet of PHP you provided was everything I needed to track down my issue.Thanks for the post!

  6. Mario Ben

    I am very excited to find this solution. I got the exact problem with my website and after searching it, I found this amazing article.
    Thank you so much!

  7. HighHopes

    i was using Xampp on local machine to host my wordpress site and got error ”Error Establishing the Database Connection”. first time i got that .. not sure why. i noticed in Xampp setup that the user and their privileges was deleted somehow. so i made a new user, using same user name as in ws-config, using host ”localhost” and password same as in ws-config. worked like a charm :)

  8. Olly

    You’re a lifesaver. Many thanks!

  9. Karl

    I got error but after couple minutes everything got back normal, any way to avoid getting this error in future?

  10. ben

    really great post !
    helped me revive my wp-blog :)
    thanks !

  11. Demannu

    THANK YOU AUTHOR!!! Your little TestConnection script has saved me some serious non-paid time.

    MUAH! / HUG / HIGH FIVE

    • El Hombre

      Really, this post has been a last-minute rescue. Many thanks to the editor.
      Cheers el hombre

  12. RaDLab

    Great article by the way.
    My issue is somehow strange to me. In the last couple of days maybe weeks, every morning few of my sites on my server will get the Error establishing connection prompt. But after a few minutes, it starts to work without me doing anything. For example, I will get an email from a client that the Error is showing, but when I quickly check it on my end, it works fine, and The client will also notice it back up. So my problem is strange, I’m not sure what to check if everything seem to resolve itself. Is possible because of high traffic?

    • Editorial Staff

      Your issue is happening due to server overload. While this can mean high traffic, but it doesn’t always mean that. Sometimes, you have medium traffic but a bad plugin that is doing it. Other times, it is just high traffic.

      Administratör

      • RaDLab

        Thanks for the response.
        This has never happened before. Just today, I’ve had to restart MySQL several times to keep many of my sites running, while I try to figure why it keeps losing connection. I’m really baffled by this. I’ve looked into the php.ini looking for where to increase any sort of limits, but I come up with nothing. It’s running right now, but soon it will fail to connect until I restart MySQL.

        Any ideas on how to adjust to the high traffic and keep the MySQL server running?

        • Editorial Staff

          One thing you can do is increase your PHP memory limit. If you are running at 32MB, then that could be a reason. But you will get to a point when your current servers just can’t handle it. You would have to upgrade. Not sure what your server specs are, and how much load you are putting on it.

          Run your server logs and see which processes are causing the load. Then see if those can be eliminated or optimized.

    • XeNNo

      I have seen that too myself.
      This is happening to me, not only with wordpress but also with joomla and piwik and everything that i use to work with and needs a database.
      My provider seems to have a different machine for the MySQL service and every now and then the connection between my sites and the MySQL server drops and give me failure.

      You should check that this is your case too… and if so… get another host service :D

      • RaDLab

        Thanks for your input. I think I have narrowed it down to a db instance that was causing my MySQL to lose connection. It’s an instance running a ELGG system. Soon as I discovered how much load this instance was putting on the server, I deleted it. Since then, the Error has seem to have stopped. Who knew…

  13. aly

    for me it was the sql password, which had a symbol ( ] ) at the end.
    After giving up on all other ”fixes,” I edited the password and presto! All good ;)

  14. yogesh

    a very big thanks from me to you because first i website show 500 internel error i fix it by read wpbeginner article now my site show error establishing a database connection i fix it by read your article….thankssssss

  15. mhisyam6

    My problem solved from this error just by reinstall/update the wordpress in the dashboard.

    • Raul

      Which version of wordpress did you upgrade to? I was previously on 3.5.1 but read that the 3.5 version is bugged, so I downgraded to 3.4.2. It’s more stable now but I still see the error…

  16. Matt

    This has been a question asked by many of our past clients and is such a pain to explain this. Pretty much, 100% of the time I end up having to go in and fix it myself.

  17. Fanto Chandra

    I just do repairing the database via cpanel-mysql database and choosing repair database and turn out working and can open the site again now. Thanks for the clue from your explanation.

  18. Christine

    my own hosting company couldn’t help me. thank you. the first option worked great.

  19. Alex Patterson

    Just went through this issue – and the problem turned out to be that my mysql database was by default using the old 16 byte hashes for the passwords, rather than the 41 byte hashes that the more recent versions of php scripts that WordPress uses requires.

    To see if this is the issue, you can look at your user table in mysql:

    select user, host, password from mysql.user;

    If the password column for your user is 16 characters rather than 41, that is your issue.

    You will need to temporarily set the hashing to 41 digits and then re-encode your password:

    set @@session.old_passwords = 0;
    set password for ’wordpress_user’@’localhost’=PASSWORD(’password’);

  20. Joshua

    Just wanted to say ”thank you” – this just saved me a ton of time and trouble.

  21. Emdad Shaon

    Thanx man……changing mysql password fix my problem…. RESPECT

  22. Jamie

    What should I do if it won’t let me log into my cpanel either? :(

  23. TP

    Great tip I was able to login through backend and reload my site with no more error messages. Took five minutes! Thanks.

  24. Geeky

    Thank you, changing password and username worked!

  25. YF

    THANKS A LOT!!!!

    This really helped me.

  26. Markus

    After editing the wp-config.php and updating with new credentials, the error was still present. I had also to clear my APC opcode cache!

  27. Evik

    Hi,

    thank you for this article. I got this error twice and each time I tried to login into my cpanel it helped. Nothing else, but log into the cpanel resolved my problem.

    It does not make sense, and I have no idea what is going on.

    I got the message every time after I have made some changes on the website (the last time I was putting on a new email subscription).

  28. Ben Nafi

    Thanks sharing..
    Thats helped me.. :)

  29. Rae

    Aside from updating wp-config.php, I had to update the domain for the following tables:
    wp_blogs
    wp_site
    wp_options -> option_value (for option_name siteurl, home)
    If you use WPMU, you will need to update ALL wp_options tables.

    The error would NOT go away until all of this was done.

  30. sara

    This happened to our site the other day, we got the dreaded error! We received a large amount of traffic but it was expected. We were using Quick Cache as the plugin and the hosts changed it for Super cache and also told us we had hit MySQL max_user_connections due to the queries on the wp_options table. They told us after installing super cache it’s taken us from 600+ database connections to under 5.

    After installing the super cache plugin everything worked great again. Now I am concerned about this happening in future, what can I do to try and prevent this? We will always have a large surge in tarffic and then very quiet moments. How can I be sure the database will be able to cope with such demands?

    Thanks

  31. smithers

    i had ”error connecting to database” problem twice in the past two days on a wordpress site on an amazon ec2 micro instance. it occurred after sending out a blast email regarding a fund raising campaign and asking people to check out the site, so i assume it was a load-related failure. anyway, the first time it occurred, i tried to restart the database (service mysqld restart), and it shutdown OK but wouldn’t restart. i then restarted apache (service httpd restart) and then restarted the database, and the database and site came back up.

    the problem occurred again today, and the database restart worked without having to restart apache.

    • Editorial Staff

      Are you using a proper caching solution? This shouldn’t happen unless you are receiving a crazy load of traffic.

      Administratör

    • Jon

      The scenario you describe is almost certainly caused by your EC2 instance being out of available memory. When you restart Apache a huge chunk of memory is released; only the minimum resources required to get the server up and running are re-allocated when Apache comes back up, then mysqld has plenty of elbow room to start.

      A few good places to start fixing this:

      1. Check your php.ini memory limit
      2. Check your innodb_buffer_pool_size setting in my.cnf
      3. Check your swap space

    • Jamie

      I’m running an Amazon EC2 instance also & restarting apache & then restarting mysqld worked for me too.

  32. Daniel

    I was moving some webspace from an older to a newer server and tested some things, got stuck with this error. This helped, thanks a lot:
    update wp_options set option_value=’http://www.newsitename.de’ where option_name=’siteurl’;

  33. Shawn

    Thanks a lot! I was waiting for support from my host for hours…Sundays…but they took too long. My problem was my database password in wp-config, which was different from the real password. I changed it and everything is fine again.

    *bookmarked

  34. hanneng

    recently I also face the same problem on my blog at http://www.hanneng.net after moved to a VPS.

    the solution is to modify the wp-config.php

    define(’DB_HOST’, ’localhost:/tmp/mysql.sock’);

  35. tristan

    Thank you so much! I had messed around in my functions php and lost the ability to open my website. in the process of trying to fix this issue I changed my password for database access and had no idea it was the cause for my error establishing database connection. I’m sure this seems fairly simple to someone who is familiar with this web stuff but for someone like me who is just a dabbler it was very frustrating. website works great now! thank you.

  36. XeNNo

    Actually I’ve had a different problem and took me some time to resolve it. My wp after moving from one server to another, editing all files needed (wp-config) started loading on home page nicely. Also the wp-admin section worked like a charm … but still the problem apeared when I started to point on pages and articles … all of theme besides homepage get me the mysql error regarding connection to database….
    So…. looking on the internet I’ve found this article of yours and tried your advices … my problem not getting resolved on any of them.
    Somehow … don’t know why… my .htaccess file pointed on another default root document and after editing my .htaccess …. :D everything started to work …
    Thought somebody will need that …

  37. Anne

    MANY many thanks for posting this. Thought I was going to have to start all over. Being one step above novice is not always sufficient! GAH!

  38. Sean Murphy

    Thanks for this post. The adding that line of php code in the first para did the trick for my sites.

  39. Lucy Gage

    Hi there,

    I am getting this error every day ”Error establishing a network connection”. The site was working perfectly, then after the first day I got up in the morning and check the site and saw the error for the first time. I logged into the crazy domains control panel and the database was missing. I called support and it took them all day to fix the problem, but then the site was ok again.

    The next morning the same problem again. I called support again. After a couple of hours the site was back working again.

    The next morning – the same problem again. another hour speaking to support, but they don’t actually tell me what the problem is.

    I am so worried about this and jsut want the problem fixed. Do you think it could be anything I have done whilst setting up the website, or just a problem with the host?

    • Editorial Staff

      It could be a number of things. One of the plugins you are using is exhausting the database server. Another reason could be that your host is overselling the shared hosting plan you maybe on. This would result in database connection error.

      https://www.wpbeginner.com/wordpress-hosting/ << See this page if you are looking to find a better web host.

      Administratör

  40. Hayley

    I actually read half of the 2nd paragraph and managed to fix my site… excellent – thanks.

  41. Jenn Hunter

    Thank you for writing this article. It helped me when having to reload my WP website from a previous back up.

  42. Damian

    What happened with me is the php.config’s password didn’t match..downloading config.php and putting in the proper password fixed it!

  43. Guest

    Hi, I run WordPress multisite and just went through an update. I have a blog that has a static front page and a separate page for blog entries. When I tried to open the blog page, I got the above message, Error Establishing a Database Connection.

    Turned out I needed to click the yellow bar that appears when you do a major WordPress update, to Update Network which synchs everything database-wise on all sites in your Multisite install. Blog page is viewable now and everything’s working fine!

  44. Rob Rawson

    My solution was to install DBVisualizer and what it showed me was that while the dbname was right it was in the wrong case. So changing the db name from wp to WP in my wp-config.php resolved this issue. No idea how this worked in the first place since this was up and running.

  45. Anna Crowe

    This was a well written and thorough article. Thank you. Not everything applied to me, but I was able to troubleshoot and identify the problem using some of these suggestions. I’m praising your name today! Thanks.

  46. Jacob Degeling

    Hi,

    I moved my wp-config.php from the dir below the www root into the www root. That brought the site back up. I would prefer the wp-config.php to be outside the www root, so I’ll have to look into why it wasn’t working in the first place.

    Thanks for the help.

    Jacob

  47. chris

    sql.safe_mode=On in php.ini hosed my multisite install this way. Change it back and the site came up again.

  48. blkbam

    One thing to check on if you are moving from your system to the server and using MySQL is the case of the database name. In my situation the server is in all lowercase while my development is all uppercase. Iit’s a very easy over site.

  49. Laura

    I had this error on my site – i called my host who told me that my username was being denied permission to the database.

    No idea how this happened as I hadn’t gone near these details. However, they assured me this was a common problem.

    Within 1 minute of the phone call ending, my site was back up and running.

    Very strange….but glad its working again!

    Great article btw! Glad i didnt need to use it in the end but very easy to understand if i had!

    • Editorial Staff

      Yeah sometimes the cats that work in the servers start having hiccups :) Glad that your site is working now.

      Administratör

  50. RB

    My wordpress site was working fine. Then I got the ”Error Establishing the Database Connection” message. Doing a Google search, there was a lot of information on what to do. This was the most helpful to me. It ended up that my database options table had crashed. I repaired it per this post and my wordpress site it works fine again. Thanks!

  51. Asif

    try checking for the php version as well, sometimes it is the php version on the server that could cause the issue.

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.