Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2004, 06:44 PM
WIx WIx is offline
Registered User
 
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Connecting to mySQL

Hi, I just started to get interested in ASP.NET (C#) and I want to know the simplest way to connect to a mySQL database called "test" and display a list of names from a table called "names".

Thanks for the help.

 
Old October 13th, 2004, 12:23 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

 ODBC 2.50 Local database:

"Driver={mySQL};Server=localhost;Option=16834;Data base=mydatabase;"

 ODBC 2.50 Remote database:

"Driver={mySQL};Server=data.domain.com;Port=3306;O ption=131072;Stmt=;Database=my-database;Uid=username;Pwd=password;"

 ODBC 3.51 Local database:

"DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=myDatabase;USER= myUsername;PASSWORD=myPassword;OPTION=3;"

 ODBC 3.51 Remote database:

"DRIVER={MySQL ODBC 3.51 Driver};SERVER=data.domain.com;PORT=3306;DATABASE= myDatabase;USER=myUsername;PASSWORD=myPassword;OPT ION=3;"

 OLE DB, OleDbConnection (.NET)
 Standard:

"Provider=MySQLProv;Data Source=mydb;User Id=UserName;Password=asdasd;"

Gokulan Ethiraj
 
Old October 13th, 2004, 08:32 AM
WIx WIx is offline
Registered User
 
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Could you possibly give me an example of code that shows the use of
OLE DB, OleDbConnection (.NET)
 Standard:

"Provider=MySQLProv;Data Source=mydb;User Id=UserName;Password=asdasd;"

Thanks

 
Old October 17th, 2004, 04:13 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

http://msdn.microsoft.com/library/en...classtopic.asp





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting mysql to php?? Manu Sharma BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 March 5th, 2007 01:40 AM
Connecting to MYSQL from C / C++ ? oloeriubogdan Linux 1 December 15th, 2006 10:50 AM
Connecting To MySQL from PHP AlisP2P MySQL 1 January 4th, 2006 02:27 AM
connecting to mysql using Php webmoron BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 6 August 24th, 2004 04:30 AM
connecting mysql with vb ks_anoop MySQL 3 February 5th, 2004 02:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.