How to access MariaDB remotely? 

We do not recommend creating an external shortcut to the database for security. But if you know what you’re doing, you’ll know your own risks. 

In order to remotely access MySQL (MariaDB) in VitalPBX you must follow the following steps. 

  1. Make sure that port 3306 is not blocked in your firewall 
  1. Create the Service in the VitalPBX Firewall (Admin/Firewall/Services) with port 3306 
  1. Create the Rule (Admin/Firewall/Rules) to use the previously created Service. 
  1. Go to your server console and modify the 50-server.cnf file. 

Change: 

To 

Finally, restart MariaDB. 

  1. And last but not least, configure the DB credentials to access remotely. 
MariaDB [(none)]> FLUSH PRIVILEGES; 

Note: 

With *.* you can access all databases. If you only want the CDR database you must write asterisk.* 

What are your feelings
Updated on December 4, 2023