How can we help?

Search for answers or browse our knowledge base.

Table of Contents

How to store the activity log of multiple sites in 1 central database

This step by step guide explains how you can use the External database integration tool to store the WordPress activity log (activity log) of multiple WordPress websites on a single MySQL database.

The WordPress activity log database tables

The WP Activity Log uses two tables in the database to store the WordPress activity log:

  • wp_wsal_metadata
  • wp_wsal_occurrrences

Note: the wp_ in the table name is a prefix. Every table in your WordPress database has the same prefix. Refer to the WP Activity Log database documentation for more details on how the WordPress activity log is stored.

Store the WordPress activity log of multiple WordPress sites in one MySQL database

Storing multiple WordPress activity logs from different websites in one central database

The concept for this is very simple – when configuring the plugin to store the activity log in the same external database where the activity logs of other sites are stored, specify a different tables prefix for each website.

The other option would be to enable the setting Use the website URL as table prefix when configuring an external database connection so the unique URL of a website is used as a prefix, thus ensuring there are no conflicting table names.

Following is an example of how to store the WordPress activity log of both the websites test1.com and test2.com on the same MySQL database.

  1. When configuring the External Database on the website wpwhitesecurity.com we specified wpw as prefix.
  2. When configuring the External DB add-on on wpsecuritybloggers.com we specified wpsb as prefix.
  3. Once both websites are configured we will have the following the tables in the MySQL database where the activity logs are stored:
  • wpw_wsal_metadata and wpw_wsal_occurrences in which the WordPress activity log of wpwhitesecurity.com is stored.
  • wpsb_wsal_metadata and wpsb_wsal_metadata wn which the WordPress activity log of wpsecuritybloggers.com is stored.
Uploading WP 2FA as a zip file in WordPress
WP 2FA in the WordPress plugin repository
Close

Installing WP 2FA Free

Congratulations on taking the first step towards enhancing your WordPress site's security with WP 2FA Free! You're now on your way to protecting your valuable data and ensuring peace of mind. No coding or technical knowledge is required.

 

Below are two ways to install WP 2FA on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for WP 2FA.

Download the WP 2FA plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading CAPTCHA 4WP as a zip file in WordPress
CAPTCHA 4WP in the WordPress plugin repository
Close

Installing CAPTCHA 4WP Free

Well done you. You're one step closer to safeguarding your WordPress website from spam and automated attacks with CAPTCHA 4WP. You'll be able to effortlessly integrate CAPTCHA into your forms and enjoy a website with enhanced security.

 

Below are two ways to install CAPTCHA 4WP on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for CAPTCHA 4WP.

Download the CAPTCHA 4WP plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading WP Activity Log as a zip file in WordPress
WP Activity Log in the WordPress plugin repository
Close

Installing WP Activity Log Free on your website

You deserve a pat on the back for choosing to record user actions and changes on your website. That is the first step towards better user accountability, easier troubleshooting of website security, and many other benefits of issues.

 

Below are the two ways to install WP Activity Log on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for WP Activity Log.

Download the WP Activity Log plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading Melapress Login Security as a zip file in WordPress
Melapress Login Security in the WordPress plugin repository
Close

Installing Melapress Login Security Free

Congratulations on taking control of your WordPress website's security by implementing robust login and password policies with Melapress Login Security. You can change your login page URL, limit failed login attempts, and reset passwords.

 

Below are two ways to install Melapress Login Security on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for Melapress Login Security.

Download the Melapress Login Security plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2