WordPress:
WordPress is an open source content management tool and it is written in PHP and Mysql. It is also known as blogging software as well as a framework for web development, supporting more than 60 million websites. WordPress is super flexible for website management which uses thousands of free and premium plugins and themes.
If your database is located on a different port, then it is necessary to change the port number in the WordPress configuration settings. This tutorial will help you to change the database port for WordPress with the below steps.
Steps to Change Database Port for WordPress:
Step 1: Log into your cPanel account with valid credentials.
Step 2: Navigate to Files section and click the File manager or you can access the file through FTP application like FileZilla.
Step 3: Locate the wp-config.php file inside the public_html folder.
Step 4: Right-click on it and select the edit option or you can use the edit button from the menu bar.
Step 5: Now a new window appears and confirm to Edit by clicking the ‘Edit’ button.
Step 6: Search for the keyword DB_HOST (ctrl+f), you will find the default port address as “localhost“. You can change your new database port address and Click Save Changes.
Note: Once the Database port is changed, make sure that the database name and database user are entered correctly.
We hope that this article will help you to change the database port for your WordPress. For more information, follow us on Twitter and Facebook and For video tutorials, subscribe to our YouTube channel ServerCake India.