Forum Discussion
How to Connect MySQL Database (Hosted on Hostinger via phpMyAdmin) to Power BI?
- 1 year ago
Hi Anonymous
To connect a MySQL database hosted on Hostinger to Power BI, you first need to enable remote MySQL access in Hostinger’s control panel by adding your public IP address under the Remote MySQL settings. Next, obtain the server address, port (usually 3306), database name, and credentials from your Hostinger account. Since Power BI doesn’t have a built-in MySQL driver, you must install the MySQL Connector/ODBC from the MySQL official website and configure a System DSN to establish a connection. In Power BI, go to Home → Get Data → More → MySQL database, enter the server details, provide your username and password, and connect. If you encounter errors like “Can't connect to MySQL server,” ensure that remote access is properly configured, or try temporarily allowing all IPs (%). If access is denied, verify your credentials, as some hosting providers require a full username format (e.g., u12345_user). To ensure smooth data retrieval, check that tables have primary keys, as Power BI often requires them. For real-time data, consider using DirectQuery mode, and if planning scheduled refreshes in Power BI Service, a gateway setup might be needed. This process allows seamless data visualization while maintaining security and connectivity with your Hostinger MySQL database.
Thanks for the reply from lbendlin , please allow me to add some more information:
Hi Anonymous ,
This is the related document, you can view this content:
Power Query MySQL database connector - Power Query | Microsoft Learn
Solved: Problem connection Power BI to MySQL data source - Microsoft Fabric Community
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.