+ Reply to Thread
Results 1 to 2 of 2

Can't connect to MySQL Server

  1. #1
    Forum Contributor amartinez988's Avatar
    Join Date
    05-04-2015
    Location
    Miami
    MS-Off Ver
    Office 2010
    Posts
    183

    Can't connect to MySQL Server

    Hi guys,

    I have one Macro that pulls information from a MySQL server. This Macro is accessed from different workstations in different regions. When I run it from my computer (Workstation A) it works perfectly. However, we setup new computers in other regions (Workstation B) and here is giving me a String Connection problem.

    Workstation B is set up the same way Workstation A was set up. Using same Windows version (64b) and same excel version (32b). Both Workstations have MySQL driver installed and ODBC connector, but still Workstation B is having issues to connect.

    This is the String Connection I'm using:
    Driver={MySQL ODBC 5.3 ANSI Driver};Server=server.name.com;Port=3306Database=db;User=macro;Password=********;

    And this is the moment when it launches the error:
    Please Login or Register  to view this content.

    This is the same connection String I'm using in Workstation A and it's working.

    However, I test my connection using these parameters from the ODBC Data Source Administrator and it works just fine. The connection is perfect.

    Do you guys know a reason why this could not be working for some computers under the same configuration and others not?

    Any Idea will be highly appreciate it...

    Thanks,
    1 Or 0, that is the question.

  2. #2
    Forum Contributor amartinez988's Avatar
    Join Date
    05-04-2015
    Location
    Miami
    MS-Off Ver
    Office 2010
    Posts
    183

    Re: Can't connect to MySQL Server

    Thank you guys. After a lot of communication between my IT manager and I, we agreed that the problem was in the versions used for MySQL, 32B vs 64B. Workstation B has a 64B OS system but a 32B Office Package.

    My recommendation is to install both MySQL drivers, 32B & 64B. That solved my problem.

    For more valuable info follow this post: http://stackoverflow.com/questions/2...ado-connection

+ 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. Connect Excel to MySQL Database using SSH
    By vinbg in forum Access Tables & Databases
    Replies: 2
    Last Post: 11-17-2015, 03:38 PM
  2. Syntax error with Ado to connect to mysql db
    By Spreadsheetdaunting in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-17-2015, 04:53 PM
  3. How to connect Excel Vba to mysql database
    By sudhakar reddy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-24-2012, 05:50 AM
  4. Connect Excel to MySQL
    By Reporter888 in forum Excel General
    Replies: 2
    Last Post: 07-13-2012, 01:46 PM
  5. Connect to SQL server
    By hellowit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2012, 03:55 AM
  6. Connect To MySQL and Retrieve Data
    By OceanBlue in forum Excel General
    Replies: 2
    Last Post: 05-16-2011, 03:56 PM
  7. [SOLVED] [SOLVED] Anyone going from MySql on web server to Excel on desktop?
    By Rick in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2005, 12:05 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