2 messages in com.mysql.lists.javaRE: DSN name for a mysql database
FromSent OnAttachments
Xiaoyun Lu11 Dec 2000 10:13 
Artigas, Ricardo Y.11 Dec 2000 17:15 
Subject:RE: DSN name for a mysql database
From:Artigas, Ricardo Y. (ry@easycall.net.ph)
Date:12/11/2000 05:15:06 PM
List:com.mysql.lists.java

In windows, you make your own DSN. ...if this is what you mean. Click Start>Settings>Control Panel>ODBC Data Sources. Follow the instructions which will ask you for the server's name, the driver to use,....etc....

or you can connect to mysql by using this statements: Class.forName("org.gjt.mm.mysql.Driver").newInstance(); Connection connection = DriverManager.getConnection(

"jdbc:mysql://servername_or_ipaddress/databasename?user=your_username&passwo rd=yourpassword");

------------------------------- IMPORTANT NOTICE:

-----Original Message----- From: Xiaoyun Lu [SMTP:xl@lanterncom.com] Sent: Tuesday, December 12, 2000 2:14 AM To: 'ja@lists.mysql.com' Cc: Xiaoyun Lu Subject: DSN name for a mysql database

Hello,

Could you please let me know how to find the Data Source Name for mysql data base? I downloaded the jdbc driver from NetDirect and want to try how to connect to the database, say the test database, but I need to find out the DSN first. Thanks for any clue.

Xiaoyun

To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail java@lists.mysql.com instead.