Server Gigabit Guide

Connection Strings for MySQL

You are here:
Estimated reading time: < 1 min

Connection Strings for MySQL

Cold Fusion (DNSless):
connectstring=”Driver={MySQL ODBC 3.51 Driver};SERVER=serverIP;UID=user;PWD=pass;DATABASE=mydb;network=dbmssocn”

OR

connectstring=”Driver={MySQL ODBC 5.1 Driver};SERVER=serverIP;UID=user;PWD=pass;DATABASE=mydb;network=dbmssocn”

Cold Fusion (DNS):
datasource=”DSN” username=”user” password=”pass”

Perl (DSNless):
$dbh = DBI->connect(‘dbi:mysql:mydatabase:serverIP’,’user’,’pass’);

PHP (DSNless):
$db = mysql_connect(“serverIP”, “user”, “pass”)

ASP (DSN):
MyConn.Open “dsn”

ASP (DSNless):
“Driver={MySQL ODBC 3.51 Driver};” & _
“Server=serverIP;” & _
“Port=3306;” & _
“Option=131072;” & _
“Stmt=;” & _
“Database=mydatabase;” & _
“Uid=user;” & _
“Pwd=pass”

 

Please refer to the following article to know more. 
Knowledge Base: Does your server support MySQL Front?

Was this article helpful?
Dislike 0
Views: 36