Using Excel to analyze MySQL data

Source: Internet
Author: User
Tags microsoft sql server odbc mysql mysql odbc driver

Even though we have powerful reporting tools like the Microsoft Crystal Report and other flexible customer management tools in our current era, Microsoft Excel is still the most common tool when analyzing sales statistics and revenue information. This is certainly not without reason: Excel, with its powerful and rich variety of functions, has become an indispensable tool in the office environment.

Now, however, companies are gradually storing data in remote databases, which allows enterprise employees to read and modify data from different places. However, the previously inherent workflow habits are difficult to break. What do you do when your boss needs to look at the latest sales figures from the remote use of Excel in the pie chart situation?

Perhaps you didn't realize that you could connect Excel to a database and not just Microsoft SQL Server. In fact, Excel can connect to all the mainstream databases, such as MySQL, PostgreSQL, and Oracle, as long as the database provides ODBC drivers. In this article, we'll take MySQL as an example to learn how to connect Excel to MySQL.

Install MYODBC

ODBC provides a standard way to perform almost all common tasks, such as data recovery, deletion, and selection, which means that for different databases, different drivers are written to interpret the user's commands as standard ODBC standards. MySQL already has a specific ODBC driver available, which is known as MYODBC. On every computer you want to use Excel to connect to MySQL, you need to install the MYODBC driver.

Now, first download the MYODBC installer (HTTP://DEV.MYSQL.COM/DOWNLOADS/CONNECTOR/ODBC). The installation package is only 2.3M, if you are a broadband connection, the download should be completed soon.

Once you have finished downloading the MYODBC, click the icon to start the installation. If you do not have special installation requirements, choose a typical installation. Click on the Installation button to start the installation, installation completed after the click on the completion button to launch the installer.

Configure MYODBC

If your operating system is Windows XP, you can open the ODBC terminal as follows: Start menu-Settings-Control Panel-admin tools-Data Source (ODBC).

Figure 1, ODBC data Source Manager

Click the Add button to add a new data source and scroll through the slider until you find the MySQL ODBC driver. Double-click the item to begin the configuration process. The configuration window is shown in the following figure.

Figure 2, increasing the MySQL data source

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.