Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

password in ODBC connection inclues ";"

Posted on 2013-06-07
6
Medium Priority
?
308 Views
Last Modified: 2013-07-22
I have a problem to connect to mysql database using ODBC and found that the password is
AB9O]]8y;y which include ";"

How can I write password in the connection string correctly?

Here is the connectin string

sConn = "ODBC;DSN=mysql;UID=username ;PWD=AB9O]]8y;y;  DATABASE=mydatabase;"
0
Comment
Question by:HemlockPrinters
6 Comments
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 39230895
What programming language and why don't you click on "Request Attention" and get this put in the MySQL zone if that is the database you're using?
0
 
LVL 6

Expert Comment

by:Michael
ID: 39231103
How about putting the password in a string variable first, then putting that in the connection string:

sPass = "AB9O]]8y;y"
sConn = "ODBC;DSN=mysql;UID=username ;PWD=" & sPass & "; DATABASE=mydatabase;"

Open in new window

0
 
LVL 8

Expert Comment

by:lomo74
ID: 39231189
Have you tried double quotes around the password parameter?
 sConn = "ODBC;DSN=mysql;UID=username ;PWD=\"AB9O]]8y;y\";DATABASE=mydatabase;"
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 

Accepted Solution

by:
HemlockPrinters earned 0 total points
ID: 39245404
thanks, but i still can't get it work.
I just changed the password not to include ";"
0
 
LVL 8

Expert Comment

by:lomo74
ID: 39245438
Lol there must be a way to do that!
0
 

Author Closing Comment

by:HemlockPrinters
ID: 39345499
there is no other good solutions
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question