Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP.NET (Non-Forum Related)
 Using ASP.NET and MySQL
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 September 2004 :  19:04:07  Show Profile
I'm learning .NET little by little using Microsoft's free Web Matrix program.

Now I want to use MySQL as my database backend, but I am not sure how to connect to mysql from my aspx page. MySQL has a .NET driver in beta (http://www.mysql.com/products/connector/net/), but there are no instructions on what i should do with it, apart from installing it.

Anyone got any clue?

Support Snitz Forums

Podge
Support Moderator

Ireland
3776 Posts

Posted - 24 September 2004 :  20:45:10  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Try this instead - http://crlab.com/mysqlnet/

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 24 September 2004 :  20:46:37  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Welcome back, BTW.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 September 2004 :  21:05:58  Show Profile
Thanks Podge. But that product isn't free. Unless you wouldn't mind buying me a copy. I would be greatful.

Support Snitz Forums
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 25 September 2004 :  05:05:26  Show Profile  Visit Nathan's Homepage
I've been using ByteFX which I believe is what that beta from MySQL is based on.

If you put the *.dll files in your .NET bin (Windows/Microsoft.NET/...) folder then the class browser that came with the WebMatrix should display them. -- I might be a little off here because VS.NET works a little differently.

Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 25 September 2004 :  06:08:48  Show Profile
The .NET bin? Which folder in the Windows/Microsoft.NET/ folder is the bin?

/Windows
- /Microsoft.NET
-- /Framework
--- /v1.0.3705
--- /v1.1.4322
---- /1033
---- /ASP.NETClientFiles
---- /CONFIG
---- /MUI
---- /Temporary ASP.NET Files
---- /Updates


There are a few more folders in those, but I don't see any bin folder.

Support Snitz Forums
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 25 September 2004 :  11:45:58  Show Profile  Visit Nathan's Homepage
/v1.1.4322

with VS.NET I could put it in my projects bin folder, but I don't know if thats going to work for the Web Matrix

Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 01 October 2004 :  22:22:48  Show Profile
So Nate, how do I connect to my mysql database from my aspx pages, using this connector?

Support Snitz Forums
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 02 October 2004 :  07:16:46  Show Profile  Visit Nathan's Homepage
It works just like the connectors for MSSql and Access OLEDB provided by Microsoft.

Check out the quickstarts on data access, then add a "My" in front of every "Sql".

The funcitons arn't a perfect match, but they are close enough. For example there are some functions in the Access provider that that return you schema information. The MySQL providers dont have that tidbit.


Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 02 October 2004 :  07:23:31  Show Profile  Visit Nathan's Homepage
And if you have trouble with it still, feel free to IM me anytime I'm on.

Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07