This article explains how to find the database in use by a Wordpress site. This information may be useful if you wish to access the database using a tool like phpMyAdmin.

Identifying the WordPresss Database

To get the database information we need to access the files on the account and open the WordPress wp-config.php file which holds the database information.

Accessing the File Manager

  1. Log in to your AKLWEB Host Plesk Account.
  2. Click on the Hosting on the top menu and then cPanel on the sub menu.
  3. Find the Files section and click on File Manager.
  4. You may get a popup asking you to select the directory you want to start in. Choose the Document Root for: option and select the website you want to get the database information for. Finally click go.

Opening the wp-config.php File.

  1. Once in the file manager, make sure you are in the folder for your WordPress site.
  2. In the list of files find the wp-config.php file.
  3. Right click on the file and select Code Edit.
  4. If you get a popup asking about the encoding of the file click the Edit button to continue.
  5. In the file editor find the line that says "define('DB_NAME', 'example_database');" This is usually around line 19. The database is the second term that is in single quotes. In the case of this example it is examplec_wo5647.

You can access the database using the database tools on the cPanel such as phpMyAdmin

Дали Ви помогна овој одговор? 0 Корисниците го најдоа ова како корисно (0 Гласови)