Thanks OGINO San.
You are right.
I am using MySQL API. So, I need to connect thro' hostname,
databaseName, etc. only and not thro' the ODBC DSN.



-----Original Message-----
From: OGINO Tomonori [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 9:57 PM
To: [EMAIL PROTECTED]
Subject: Re: 'mysql_real_connect' with DSN


In message
<[EMAIL PROTECTED]>
   "'mysql_real_connect' with DSN "
   ""Nawal Lodha" <[EMAIL PROTECTED]>" wrote:
>  
> Can 'mysql_real_connect' be called using DSN name rather than giving 
> hostname, database name, port no., etc ?

Are you using ODBC?
Data Source Name(DSN) is an alias of the database in ODBC.
So you must use DSN with ODBC API and
 cannot with 'mysql_real_connect' that is MySQL API.

---
OGINO Tomonori 
@Osaka, Japan

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to