Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MySQL Connect Problem
Message
De
24/11/2014 04:19:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
MySQL Connect Problem
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01611335
Message ID:
01611335
Vues:
92
Hi All

Having a bit of a blind moment. I am trying to connect to a MySQL database that a contract programmer has given me without much documentation. Here is my test connection code:
lcServer   = "localhost"
lcDatabase = "MyTableName"
lcUser     = "root"
lcPassword = "MyPassword"

lcStringConn  ="Driver={MySQL ODBC 3.51 Driver};Port=3306" + ;
              ";Server="   + lcServer   + ;
              ";Database=" + lcDatabase + ;
              ";Uid="      + lcUser     + ;
              ";Pwd="      + lcPassWord
              
lnHandle=SQLSTRINGCONNECT(lcStringConn)
But I get a connection error which says: "Connectivity error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"

The contract developer says my connection string is right but clearly I cant connect. Where am I missing the obvious?

TIA
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform