After deploying a WordPress website to cPanel on shared hosting or server, you may wonder where you can configure the database connection. So that, you can use the admin dashboard and the website start to work correctly.
After creating your database and getting its access data open the “wp-config.php” file and change the following code.
/** The name of the database for WordPress */
define( 'DB_NAME', 'your_database_name' );
/** MySQL database username */
define( 'DB_USER', 'your_database_user' );
/** MySQL database password */
define( 'DB_PASSWORD', 'your_database_password' );
I hope, it could help.