ea6651's Avatar
ea6651 4
9 Asked
12 Answered
2 Best
0
No one has voted on this question yet :(
3 years, 5 months ago

How to best connect Excel to a hosted MySQL installation?

There are tools out there such as Excel-DB that allow me to connect to a local MySQL database. However, I need to connect to a database that is hosted on GoDaddy and 1and1. Any ideas whether there's an ODBC applications that allow me to do so?
Tip for best answer: M$3.00
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

What is Your Answer?

0
0
0

6 Answers

0
ilaksh's Avatar
ilaksh | 3 years, 5 months ago
4
I think there may be a firewall problem or missing piece of information (like an ip) or incorrect connection string that is preventing you from connecting to the hosted mysql. You might at some point verify with your hosting provider that this is even allowed for your account.

Here's this myodbc thing that seems like it may do what you ask http://www.automateexcel.com/2005/11/01/connect_excel_to_mysql_database/ but I don't think you necessarily need another tool (see previous paragraph)

But I have three questions:

1. First, have you verified that you will be able to connect using ANY application (such as Mysql administrator or the mysql command line) to your hosted mysql database server? You would need the hostname or ip, port, username and password. This may be an option on your account you have to set or it may not be allowed at all. Depends on your host and the type of account.

From reading your question and this stuff in your reply

"Also, this is about simultaneous multi-user lookup of data during a transaction, so the CSV route is not feasible. I'm considering Access, but need to do very heavy computations, thus I need Excel"

2. Now I'm curious, what are you actually doing? Usually when it gets that involved the spreadsheet doesn't handle it alone well and one starts developing an application rather than trying to make Excel do everything. In that case the calculations might be in Java or C++ or Python or whatever and the application would access the DB through standard APIs. OR another common scenario is to have a layer of application code around your mysql database that this financial application might call through a web API.

But.. maybe what you are trying to do makes sense and will actually work if you can connect. Just doesn't seem the standard approach. Although I don't have any details.

3. What sort of transactions? Are they actually financial transactions??

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$
ilaksh's Avatar
ilaksh | 3 years, 5 months ago Report

Ok it doesnt let me reply to you reply so I will write it here. Maybe Excel will work for that.. I mean it certainly is flexible and easy to do calculations with.

Does the version of Excel you are using handle the concurrency issues as far as having many users getting a live view of data? I think Microsoft is trying to address that with their newest or Live version or something and if not there is also stuff like Google docs spreadsheets or this EditGrid thing which were specifically designed to handle that aspect of it.

ea6651's Avatar
ea6651 | 3 years, 5 months ago Report

Thanks for your feedback -- it helped me to find out about HTTP tunneling and why I need that for GoDaddy and 1and1. I have not tried it yet, though.

Our current GoDaddy database is accessible through PHP, so I know we can get to it.

I'm implementing an operator interface to a php/Java web application that many of our customers will use. The operator interface in Excel will allow operators (note the plural) to look at the data that is pertinent to them, do some heavy computational data crunching, allocate resources based on that data crunching and then write the resource allocation back into the database, so allocated resources are accessible to customers. Some of these resource allocations take place within seconds after reading the data, some within minutes, but all need up-to-date data to make decisions and then write back in real-time whatever decision was made. Eventually, as we solidify certain aspects of the operator interface, it will get "set in stone" (meaning, it will be programmed in PHP and Java), but the flexibility of Excel will always be needed. And yes, we are talking about transactions that involve money...

Report Abuse

Post Reply Cancel
0
phrees's Avatar
phrees | 3 years, 5 months ago
4
As your using Excel to do a lot of calculations I'm assuming this is for reporting/analysis. In this case you may be better off exporting from mysql to a comma separated or tab separated file, them importing to excel for analysis.

An alternative is to write a php script that generates an html table and sets the content type of the page to automatically display in Excel.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel
0
coco201314's Avatar
coco201314 | 7 months ago
0
Lost or forgot Word password with which you can acquire the documents or information stored in the Word file is clearly tricky. You can try Word Password Recovery to recover the lost Word password. This would be helpful.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel
0
underdogmike's Avatar
underdogmike | 3 years, 5 months ago
4
Some hosts require you to either set * (wildcard) for the host for hosts accessing the mysql database or else your IP. For example cpanel has a feature that facilitates this called Remote Database Access Hosts. However you really might as well just import your csv file.

Check with your host whether your able to remotely connect to your mysql database.
source(s):
my own knowledge

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$
ea6651's Avatar
ea6651 | 3 years, 5 months ago Report

Thanks for the reply. I googled this further and it looks like GoDaddy and 1and1 need HTTP tunneling to get access to hosted MySQL databases. I should have access privileges on GoDaddy, but might not have them on 1and1...

Report Abuse

Post Reply Cancel
0
kevinbernard31's Avatar
kevinbernard31 | 3 years, 5 months ago
4
Yes, you can use ADO to create an ODBC connection between an excel spreadsheet and MySQL. It may even be a bit easier to import the excel data into Access and then use the data connection and querying abilities of Access.

Alternately you can export your Excel data to a CSV file and use the tools in MySQL to import the data file.


"What i suggest you is to save your excel file in .CSV format and then import it from mysql."

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$
ea6651's Avatar
ea6651 | 3 years, 5 months ago Report

Thanks, but my question centered around HOSTED mysql. I seem to not be able to connect to a hosted mysql installation whereas I can to a local one.

Also, this is about simultaneous multi-user lookup of data during a transaction, so the CSV route is not feasible.

I'm considering Access, but need to do very heavy computations, thus I need Excel. I cannot replicate the Excel formulas in VBA in Access. Impossible...

Report Abuse

Post Reply Cancel
-2
powerfulmask's Avatar
powerfulmask | 3 years, 5 months ago
4

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates