Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to Edit Wordpress WP Config PHP File in cPanel ? Step by Step Guide
ChannelMr. Virk MediaDescription from the creator
This tutorial talks about How to edit Wordpress WP Config php file in cPanel ?
Full article: mrvirk.com/how-to-edit-wp-config-file-in-wordpr…
Links mentioned in the video:
How to use cPanel demo: mrvirk.com/how-to-use-cpanel.html
How to create a database for Wordpress: mrvirk.com/how-to-create-database-for-wordpress…
Hi, Welcome to the tutorial. Lets checkout how to edit wp-config file in WordPress to change or update your database details
Pre-requsite
1- cPanel Access, this is your webhosting dashboard where your website files are hosted.
2- Make a backup of your file
3- Basic knowlege of php or any other programming language to help you understand what needs changing and how ? If you are not an expert dont worry, below is a video tutorial to help guide non technical audiences.
Video Tutorial
What are the common use cases for editing this file
1- updating your database and user details
2- wordpress error establishing database connection
Example
Below, I have shared a screenshot sample of wp-config.php file, that will help you understand what is inside this file or what the contents of this file looks like ?
wp-login file
wp-config.php file
How to edit WordPress wp-config.php file in cPanel
How to edit WordPress wp-config.php file in cPanel
Editing wp-config
Lets, get to the business and start editting our file. At this point, I assume you have your file opened in the editor. Please follow instructions below –
Note: MySQL settings – You can get this info from your cPanel or web developer
1- Code below allows you to change your wordpress websites database to your new database name
define(‘DB_NAME’, ‘myOldDatabaseName‘);
just update the last part, to with the new name-
define(‘DB_NAME’, ‘myNewDatabaseName‘);
and thats it.
2- Similarly change MySQL database username
define(‘DB_USER’, ‘test_user’);
3- Update to the latest MySQL database password
define(‘DB_PASSWORD’, ‘myPassword123’);
4- MySQL hostname (this line and rest of the file stays unchanged)
define(‘DB_HOST’, ‘localhost’);
Hope this helped, please leave your thoughts in comments below
Tags: Edit Wordpress WP Config, wordpress where can i find wp config php, Wordpress Config file, wp-config.php
Full article: mrvirk.com/how-to-edit-wp-config-file-in-wordpr…
Links mentioned in the video:
How to use cPanel demo: mrvirk.com/how-to-use-cpanel.html
How to create a database for Wordpress: mrvirk.com/how-to-create-database-for-wordpress…
Hi, Welcome to the tutorial. Lets checkout how to edit wp-config file in WordPress to change or update your database details
Pre-requsite
1- cPanel Access, this is your webhosting dashboard where your website files are hosted.
2- Make a backup of your file
3- Basic knowlege of php or any other programming language to help you understand what needs changing and how ? If you are not an expert dont worry, below is a video tutorial to help guide non technical audiences.
Video Tutorial
What are the common use cases for editing this file
1- updating your database and user details
2- wordpress error establishing database connection
Example
Below, I have shared a screenshot sample of wp-config.php file, that will help you understand what is inside this file or what the contents of this file looks like ?
wp-login file
wp-config.php file
How to edit WordPress wp-config.php file in cPanel
How to edit WordPress wp-config.php file in cPanel
Editing wp-config
Lets, get to the business and start editting our file. At this point, I assume you have your file opened in the editor. Please follow instructions below –
Note: MySQL settings – You can get this info from your cPanel or web developer
1- Code below allows you to change your wordpress websites database to your new database name
define(‘DB_NAME’, ‘myOldDatabaseName‘);
just update the last part, to with the new name-
define(‘DB_NAME’, ‘myNewDatabaseName‘);
and thats it.
2- Similarly change MySQL database username
define(‘DB_USER’, ‘test_user’);
3- Update to the latest MySQL database password
define(‘DB_PASSWORD’, ‘myPassword123’);
4- MySQL hostname (this line and rest of the file stays unchanged)
define(‘DB_HOST’, ‘localhost’);
Hope this helped, please leave your thoughts in comments below
Tags: Edit Wordpress WP Config, wordpress where can i find wp config php, Wordpress Config file, wp-config.php
About this tutorial
Mr. Virk Media published this 5:51 video tutorial on October 27, 2019. It has been watched 21,740 times on YouTube.
- Channel
- Mr. Virk Media
- Category
- People & Blogs
- Duration
- 5:51
- Published
- October 27, 2019
- Views
- 21,740
- Likes
- 67
Tags
Share
This tutorial in other languages
- FRComment faire pour modifier Wordpress WP Config PHP fichier dans cPanel? Guide étape par étape
- ESCómo Editar archivo de configuración de PHP Wordpress WP en cPanel? Guía paso por paso
- PTComo Editar Arquivo Wordpress WP configuração PHP no cPanel? Guia Passo a Passo
- ITCome Modifica file Wordpress WP Config PHP in cPanel? Guida passo passo
- DEWie zu bearbeiten Wordpress WP Config PHP Datei in cPanel? Schritt für Schritt Anleitung
- NLHoe te bewerken Wordpress WP Config PHP Bestand in cPanel? Stap voor stap handleiding
- RUКак изменить Wordpress WP Config PHP файл в CPanel? Шаг за шагом руководство
- PLJak Plik Edycja Wordpress WP Konfiguracja PHP w cPanel? Przewodnik krok po kroku
- JAどのようにcPanelの中を編集WordpressのWPコンフィグPHPファイルへ?ステップバイステップガイド
- ARكيفية تحرير ملف وورد WP التكوين PHP في وحة التحكم؟ دليل خطوة بخطوة
- HIकैसे cPanel में संपादित Wordpress WP कॉन्फ़िग पीएचपी फ़ाइल के लिए? चरण दर चरण मार्गदर्शिका
- IDCara Mengedit Wordpress WP Config File PHP di cPanel? Langkah demi Langkah Panduan