Contact US

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!

*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 Connection String

MYSQL Connection String

MYSQL Connection String

What is the connection string for MySQL, I am pretty new to this stuff and need big time help. Any books I could get on this? Any help would be appreciated. Thanks in advanced

RE: MYSQL Connection String

Use this if pointing to an ODBC.ini file (you would need to set these values in the ODBC.ini file on your web server along with port address usually 3306) - assumes ODBC MySQL driver is installed.

conn = "DSN=[database name]; UID=[userid]; PWD=[password]; SERVER=[MySQL server IP address]; DATABASE=[database name]"

Use this for OLEDB or ODBC. You will need to install the MySQL ODBC driver

conn = "Driver{MySQL}; UID=[userid]; PWD=[password]; SERVER=[MySQL server IP address]; DATABASE=[database name]"

wher conn is connection string.

Books: MySQL & mSQL by O'RIELLY publishers. Written by Randy Jay Yarger, George Reese & Tim King.

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! Already a Member? Login

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