+ Reply to Thread
Results 1 to 8 of 8

Connection between Excel and MySql Workbench

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Santiago
    MS-Off Ver
    Excel 2007
    Posts
    15

    Connection between Excel and MySql Workbench

    Hey, guys!

    I've been having a tough time in the last couple days trying to connect an excel file with SQL. I'm using MySQL Workbench and WAMPSERVER and I want to send my queries from excel to the DB on a local host (no need of phpadmin or something like that).

    At first, I tried to make a connection directly trough VBA, using codes I found on the internet. Sadly, all my attempts failed.

    Later on, I decided to use the Excel automatic option. This means I'm trying to access the SQL Server this way: Click on Data, From Other Sources, From SQL Server.

    I've installed like a thousand different plug-ins and I've followed different instructions from an uncountable number of different threads and forums I've found on the internet, but nothing seems to work or I just don't correctly understand how to do it.

    Does anybody have an easy, step by step webpage link where the damn connection is explained? Everytime I try to do it I get the following error message:

    [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

    Thanks!

    Ps: is it fine to post this thread on this particular part of the Forum?

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Connection between Excel and MySql Workbench

    Depends on your needs I guess. Have you looked at an add-in?
    http://www.mysql.com/why-mysql/windows/excel/

  3. #3
    Registered User
    Join Date
    08-07-2013
    Location
    Santiago
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Connection between Excel and MySql Workbench

    Can't imagine how grateful I am! You wouldn't imagine how many weird stuff I found around that didn't actually worked!

    Now, is there anyway I can send querys and statements from the excel file to mysql workbench?

  4. #4
    Registered User
    Join Date
    08-07-2013
    Location
    Santiago
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Connection between Excel and MySql Workbench

    Yep, can't get to see/import my queries

  5. #5
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Connection between Excel and MySql Workbench

    IF you want more control, ADO is the way to go. The key part to doing that is the connection string. http://www.connectionstrings.com/mysql/

    It may be late tomorrow before I get back to this with my example of ADO code using mysql.

  6. #6
    Registered User
    Join Date
    08-07-2013
    Location
    Santiago
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Connection between Excel and MySql Workbench

    Can you copy me the Example you say you have?

    Thanks again!

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Connection between Excel and MySql Workbench

    Is it MySQL or SQL Server you are using?
    If posting code please use code tags, see here.

  8. #8
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Connection between Excel and MySql Workbench

    As Norie said, it does make a difference in the code whether it is MySQL or SQL Server. See the website that I listed post #5 for the two connection strings.

    Of course there are many ADO examples on the net. Here is the MySQL example that I promised. See the link where I posted it for more details.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MySQL ODBC DSN Connection Working but not Working
    By ACM2 in forum Excel General
    Replies: 6
    Last Post: 05-11-2013, 05:15 AM
  2. Cube Analysis - MySQL Connection
    By gatornation in forum Excel General
    Replies: 0
    Last Post: 04-30-2007, 10:41 AM
  3. calling all pro's!!! macro that can modify dates in odbc connection to mysql
    By majestik in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2005, 03:05 PM
  4. Connection to MySQL causes "Catastrophic failure"
    By Flemse in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-11-2005, 09:06 AM
  5. connection to internet mysql-database
    By masterphilch in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-02-2005, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1