Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

How to Connect MySQL Database (Hosted on Hostinger via phpMyAdmin) to Power BI?

Hello Power BI Community, I’m trying to connect a MySQL database to Power BI, but I’m facing some challenges. Here are the details of my setup: Database Type: MySQL Hosting Platform: Hostinger...
  • Poojara_D12's avatar
    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.