In this article, we'll walk you through directly connecting your MySQL database to Magento BI. These settings can also be used with Magento EE/CE or any other eCommerce databases that use MySQL.
For the connection to be successful, your must configure your firewall to allow access from our IP addresses. They are 184.108.40.206 and 220.127.116.11, but it's also on the MySQL credentials page:
The simplest way to create a MySQL user for Magento BI is to execute the following query when logged into MySQL with GRANT privileges. Replace <Magento BI IP Address> with the Magento BI IP address and replace <secure password> with a secure password of your choice:
GRANT SELECT ON *.* TO 'magentobi'@'<Magento BI IP address>' IDENTIFIED BY '<secure password>';
To restrict this user from accessing data in specific databases, tables, or columns, you can instead run GRANT queries that only allow access to the data you permit.
Please re-run the GRANT query for all required IPs using the same user and password.
To wrap things up, we need to enter the connection and user info into Magento BI. Did you leave the MySQL credentials page open? If not, go to Data > Connections and click the Add New Data Source button, then the MySQL icon. Don't forget to toggle the Encrypted button to Yes.
Enter the following info into this page, starting with the Database Connection section:
That's it! When you're finished, click the Save & Test button to complete the setup.