2 messages in com.mysql.lists.javaRE: DSN name for a mysql database| From | Sent On | Attachments |
|---|---|---|
| Xiaoyun Lu | 11 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");
Ricky Y. Artigas Analyst/Programmer Software Development - Information Technology Division Easycall Communications Phils., Inc. 418 Arayat Street Mandaluyong City 1550 Philippines website: http://www.easycall.com.ph Tel.no: (+632) 5338001 ext.6574 Pager: 141-002955 Email: ry...@easycall.net.ph
------------------------------- IMPORTANT NOTICE:
This message (and any attachment hereto) may contain privileged and/or confidential information specific to EasyCall. If you are not the intended addressee indicated in this message, you may not copy or disseminate this message (or any attachment hereto) to anyone. Instead, please destroy this message (and any attachment hereto), and kindly notify the sender by reply email. Any information in this message (and any attachment thereto) that do not relate to the official business of EasyCall shall be understood as neither given nor endorsed by the company.
-----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
--------------------------------------------------------------------- Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before posting. To request this thread, e-mail java...@lists.mysql.com
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.




