473,382 Members | 1,392 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

ASP.NET & MySQL

Ok, I have a MySQL database on my server, and i want to test my ASP.NET
pages on my localhost. How do i do a DNS-less connection to it and pull data
from the database? I've tried some stuff from asp.net but nothings working.
-David
Nov 17 '05 #1
6 2996
My colleague Carl Prothman has a great collection of connection strings
(including MySQL.NET) here:

http://www.able-consulting.com/dotne...NativeProvider

Ken

"David Whitehouse" <da***@whitehouse.liqx.net> wrote in message
news:3f******@dnews.tpgi.com.au...
Ok, I have a MySQL database on my server, and i want to test my ASP.NET
pages on my localhost. How do i do a DNS-less connection to it and pull data
from the database? I've tried some stuff from asp.net but nothings working.
-David

Nov 17 '05 #2
Hi,

here are two good links:

"David Whitehouse" <da***@whitehouse.liqx.net> wrote in message
news:3f******@dnews.tpgi.com.au...
Ok, I have a MySQL database on my server, and i want to test my ASP.NET
pages on my localhost. How do i do a DNS-less connection to it and pull data from the database? I've tried some stuff from asp.net but nothings working. -David

Nov 17 '05 #3
Hi,

here are two good links about this:

http://www.mysql.com/articles/dotnet/#ODBC.NET

http://www.mysql.com/products/myodbc...ml#Without_DSN

Best regards,

Marc Höppner
NeoGeo

"David Whitehouse" <da***@whitehouse.liqx.net> wrote in message
news:3f******@dnews.tpgi.com.au...
Ok, I have a MySQL database on my server, and i want to test my ASP.NET
pages on my localhost. How do i do a DNS-less connection to it and pull data from the database? I've tried some stuff from asp.net but nothings working. -David

Nov 17 '05 #4
Sadly I've already read them and dont understand too well. I've tried to
give them a go but still get the same errors. What i really need is a
dummies guide to set it up, step by step.

"Marc Hoeppner" <ma**********@hotmail.com> wrote in message
news:OB**************@tk2msftngp13.phx.gbl...
Hi,

here are two good links about this:

http://www.mysql.com/articles/dotnet/#ODBC.NET

http://www.mysql.com/products/myodbc...ml#Without_DSN

Best regards,

Marc Höppner
NeoGeo

"David Whitehouse" <da***@whitehouse.liqx.net> wrote in message
news:3f******@dnews.tpgi.com.au...
Ok, I have a MySQL database on my server, and i want to test my ASP.NET
pages on my localhost. How do i do a DNS-less connection to it and pull

data
from the database? I've tried some stuff from asp.net but nothings

working.
-David


Nov 17 '05 #5
Hi,

have you tried something like:

MySqlConn.ConnectionString = "Data Source=localhost;Database=<DB>;User
ID=<user>;Password=<password>";

I assume MySQL is on the same box.

Best regards,

Marc Höppner
NeoGeo

"David Whitehouse" <da***@whitehouse.liqx.net> wrote in message
news:3f******@dnews.tpgi.com.au...
Sadly I've already read them and dont understand too well. I've tried to
give them a go but still get the same errors. What i really need is a
dummies guide to set it up, step by step.

"Marc Hoeppner" <ma**********@hotmail.com> wrote in message
news:OB**************@tk2msftngp13.phx.gbl...
Hi,

here are two good links about this:

http://www.mysql.com/articles/dotnet/#ODBC.NET

http://www.mysql.com/products/myodbc...ml#Without_DSN

Best regards,

Marc Höppner
NeoGeo

"David Whitehouse" <da***@whitehouse.liqx.net> wrote in message
news:3f******@dnews.tpgi.com.au...
Ok, I have a MySQL database on my server, and i want to test my ASP.NET pages on my localhost. How do i do a DNS-less connection to it and
pull data
from the database? I've tried some stuff from asp.net but nothings

working.
-David



Nov 17 '05 #6
are you still having problems with this?

"Marc Hoeppner" <ma**********@hotmail.com> wrote in message
news:eE**************@tk2msftngp13.phx.gbl...
Hi,

have you tried something like:

MySqlConn.ConnectionString = "Data Source=localhost;Database=<DB>;User
ID=<user>;Password=<password>";

I assume MySQL is on the same box.

Best regards,

Marc Höppner
NeoGeo

"David Whitehouse" <da***@whitehouse.liqx.net> wrote in message
news:3f******@dnews.tpgi.com.au...
Sadly I've already read them and dont understand too well. I've tried to
give them a go but still get the same errors. What i really need is a
dummies guide to set it up, step by step.

"Marc Hoeppner" <ma**********@hotmail.com> wrote in message
news:OB**************@tk2msftngp13.phx.gbl...
Hi,

here are two good links about this:

http://www.mysql.com/articles/dotnet/#ODBC.NET

http://www.mysql.com/products/myodbc...ml#Without_DSN

Best regards,

Marc Höppner
NeoGeo

"David Whitehouse" <da***@whitehouse.liqx.net> wrote in message
news:3f******@dnews.tpgi.com.au...
> Ok, I have a MySQL database on my server, and i want to test my ASP.NET > pages on my localhost. How do i do a DNS-less connection to it and pull data
> from the database? I've tried some stuff from asp.net but nothings
working.
> -David
>
>



Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: AF | last post by:
I am a real novice to php and MySQL, with about a week's worth of reading and self tutoring. I have an urgent need to publish a database of information and need some guidance on how to do this. ...
12
by: Sarah Tanembaum | last post by:
Though I installed MySQL5 and PHP5, how come my phpinfo() shows as follow: MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 3.23.57 <<<<<<<<<<<<<<< ...
5
by: Raju V.K | last post by:
I am developing a web site which requires a set og unique values be transferred between pages and server many times. There fore i decided to put the values in an array so that only one reference to...
0
by: Jeremy Booker | last post by:
I installed the current stable release of MySQL from RPMs. I used the client and server packages. After installing the server package, the RPM printed a note saying I should run two commands. I...
0
by: Jamie Krasnoo | last post by:
Will placing Apache::RequestRec & Apache::RequestIO & APR::Table in startup.pl to load them up for multiple handlers have any bad side effects? I noticed that when I load them via startup.pl the...
4
by: MLH | last post by:
A programmer developed an AMP (Apache/MySQL/PHP) application for me. When he was done, he sent me the PHP files and the MySQL dump file. Now, when I connect to the application on my LAN using...
3
by: 21novembre | last post by:
Hi all, I made a question several days before to describe my strange trouble of mysqldump. But I still can't figour it out. Well, I just want to ask another question whether I could just backup...
2
by: zhengfish | last post by:
Hi,All, I try to install mysql-5.0.15 on RHEL3-U5. But It give me a error. MySQL-client-standard-5.0.15-0.rhel3.i386.rpm MySQL-devel-standard-5.0.15-0.rhel3.i386.rpm...
6
by: John Wells | last post by:
Guys, My boss has been keeping himself busy reading MySQL marketing pubs, and came at me with a few questions this morning regarding PostgreSQL features (we're currently moving to PostgreSQL). ...
3
by: subho2009 | last post by:
Hello friends, I have face a problem, the problem is that when i fetch data from mysql database i get '&' in the place of '&amp;'. I am using php 5.1.2 and mysql version 5.0.11-beta. What is the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.