Knowledge Base
How to configure remote MySQL for cPGuard database
cPGuard uses MySQL database to store the data and by default, it is stored in a database named cpanel_cpguard on the local server. If you want to use a remote MySQL database to store cPGuard data, you can create the file "/usr/local/cpanel/whostmgr/docroot/cgi/cpguard/includes/db.ini" with the following entries
; Database connection parameters
host = localhost
database = DB Nameusername = cpguser
password = password
Make sure to change the values accordingly for each field.
By default, the file is not created and if you create it, the file should contain valid credentials. Also, make sure to grant ALL privileges for the user/password [ given in db.ini file ] on the remote MySQL server.
Please feel free to contact our support for any related assistance.