Connect to a MySQL database (Power Query)
Use Excel's Get & Transform (Power Query) experience to connect to a MySQL database.
Note: Before you can connect to a MySQL database, you need the MySQL Connector/Net 6.6.5 for Microsoft Windows on your computer. Select the driver that matches your Office version.
Click the Data tab, then Get Data > From Database > From MySQL Database. If you don't see the Get Data button, then click New Query > From Database > From MySQL Database
In the Power Query ribbon tab, click From Database > From MySQL Database.
Next
-
In the MySQL Database dialog box, in Server Name specify the MySQL Database Server to connect to.
-
If you want to import data using native database query, specify your query in the SQL Statement box. For more information, see Import Data from Database using Native Database Query.
-
Click OK.
-
If the MySQL server requires database user credentials:
-
In the Access a Database dialog box, enter your username and password.
-
Click Connect.
-
Need more help?
You can always ask an expert in the Excel Tech Community, get support in the Answers community, or suggest a new feature or improvement on Excel User Voice.
No comments:
Post a Comment