How to Check Database Login details in wp-config file?

Hosting Solutions
2 min readApr 25, 2022

--

wp-config file is one of the most important file of website database, especially of a WordPress website. It includes all the details related to database and its user.

One of the most common error Error Establishing database connection in WordPress fixed by modifying this file only. To learn about its whole procedure read the article at www.blog.redserverhost.com. I’ve written articles related to WordPress and management of WordPress website.

Today, I’m sharing an article that help you to check the database login details in wp-config file. Let us learn about the procedure in detail.

  • Login to cPanel or FTP account.
  • Get inside the WordPress installation directory.
  • Check the file wp-config.php and right click over it.
  • Then select View from the list of options.
  • On the next window, all the details will appear.
/** 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' );

You will find database name, database username, database user password and host name in the file.

With the given procedure, you can easily check database login details in wp-config file.

We will share more such articles to help you manage your website and its data. Till then,

Happy Reading !!

WordPress

Cheap Web Hosting Services

Cheap Reseller Hosting Services

--

--

Hosting Solutions

Get all the solution related to web hosting and website management.