Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MYSQL Connection String

Status
Not open for further replies.

rmccoy

MIS
Mar 22, 2001
4
0
0
US
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
 
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top