Email-Icon Created with Sketch. Group 3 Created with Sketch. Domains-SVG-Box Created with Sketch. Domains-SVG-Box Created with Sketch. Domains-SVG-Box Created with Sketch. Hosting-SVG-Box Created with Sketch. Hosting-SVG-Box Created with Sketch. Icon-Internet Created with Sketch. Hosting-SVG-Box Created with Sketch. Icon-Internet Created with Sketch. Icon-Internet Created with Sketch. Hosting-SVG-Box Created with Sketch. Hosting-SVG-Box Created with Sketch. Trust Pilot Stars Created with Sketch. 1-5-million Created with Sketch. black-green yellow_blue Control-panel-Icon Created with Sketch. WSB-Brush Created with Sketch. WSB-Brush Created with Sketch. WSB-Brush Created with Sketch. Email-Icon Created with Sketch. Email-Icon Created with Sketch. Email-Icon Created with Sketch. Email-Icon Created with Sketch. Icon-ECommerce-Seperator Created with Sketch. Icon-ECommerce-Seperator Created with Sketch. Icon-ECommerce-Seperator Created with Sketch. icon-slider-next Created with Sketch. icon-slider-prev Created with Sketch. Webmail-icon Created with Sketch. heart Created with Sketch. Open-24-7 Created with Sketch. 247 Created with Sketch. open24 Created with Sketch. 24 7 trusted Created with Sketch. Fill 1 Created with Sketch.

Uppdatera anslutningsuppgifter för WordPress-databas

Steg 1 - Öppna File Manager
Steg 2 - Öppna wp-config.php
Steg 3 - Leta reda på inloggningsuppgifterna
Steg 4 - Uppdatera uppgifter

Ibland måste man uppdatera anslutningsuppgifterna för WordPress-databasen. Till exempel efter att du bytt lösenord till databasen eller om du får följande felmeddelande:


Error establishing a database connection

Steg 1 - Öppna File Manager

Logga in på din kontrollpanel på One.com och klicka på File Manager.


Open File Manager

Steg 2 - Öppna wp-config.php

Filen wp-config.php finns i katalogen där du installerade WordPress.
Klicka på filen wp-config för att öppna den i redigeraren.


Open wp-config.php

Steg 3 - Leta reda på inloggningsuppgifterna

Vanligvis kan du hitta inloggningsuppgifterna kring rad 20 i wp-config-filen.
I det här exemplet är nuvarande uppgifter:

define('DB_NAME', 'one_example_support'); define('DB_USER', 'one_example_support'); define('DB_PASSWORD', '********'); define('DB_HOST', 'one-example.support.mysql.service.one.com');

Find details in wp-config.php

Steg 4 - Uppdatera uppgifter

I följande exempel måste du ersätta update_here med dina egna uppdaterade uppgifter.
Du hittar anslutningsuppgifterna på kontrollpanelen på One.com, under PHP & Databas - MariaDB.

define('DB_NAME', 'update_here'); define('DB_USER', 'update_here'); define('DB_PASSWORD', update_here'); define('DB_HOST', 'update_here');

Klicka på Spara uppe till vänster på sidan.


Edit details in wp-config,php

Relaterade artiklar:

Ändra ditt WordPress-tema från databasen
Inaktivera WordPress-tillägg i phpMyAdmin