Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


MySQL Relink Table VBA

MySQL Relink Table VBA

MySQL Relink Table VBA

Hi all,

I have this problem regarding relinking mysql server access does not remember the connection and keeps on popping up asking for authentication

CnnString = "ODBC;DRIVER=MySQL ODBC 5.3 ANSI Driver;DATABASE="db_production";OPTION=2048;PORT=3306;SERVER="";UID="root";PWD=;Connect Timeout=45; Command Timeout=90;"
Set tdf = CurrentDb.CreateTableDef("tbllogo")
tdf.Connect = CnnString
tdf.SourceTableName = "tbllogo"
CurrentDb.TableDefs.Append tdf
Set tdf = Nothing

any thoughts?
thanks in advance

RE: MySQL Relink Table VBA

I'm not familiar with connecting to mysql but I would expect your code should remove a lot of the double-quotes:

CODE --> vba

CnnString = "ODBC;DRIVER=MySQL ODBC 5.3 ANSI Driver;DATABASE=db_production;OPTION=2048;PORT=3306;" & _
    "SERVER=;UID=root;PWD=;Connect Timeout=45;Command Timeout=90;" 
You are not providing a PWD.

Hook'D on Access
MS Access MVP

RE: MySQL Relink Table VBA

MYSQL server does not have a password, it looks like the connection has not been saved and remembered by access

RE: MySQL Relink Table VBA

Thanks dude :)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close