473,765 Members | 2,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3014
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***@whitehou se.liqx.net> wrote in message
news:3f******@d news.tpgi.com.a u...
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***@whitehou se.liqx.net> wrote in message
news:3f******@d news.tpgi.com.a u...
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***@whitehou se.liqx.net> wrote in message
news:3f******@d news.tpgi.com.a u...
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**********@h otmail.com> wrote in message
news:OB******** ******@tk2msftn gp13.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***@whitehou se.liqx.net> wrote in message
news:3f******@d news.tpgi.com.a u...
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.Conne ctionString = "Data Source=localhos t;Database=<DB> ;User
ID=<user>;Passw ord=<password>" ;

I assume MySQL is on the same box.

Best regards,

Marc Höppner
NeoGeo

"David Whitehouse" <da***@whitehou se.liqx.net> wrote in message
news:3f******@d news.tpgi.com.a u...
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**********@h otmail.com> wrote in message
news:OB******** ******@tk2msftn gp13.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***@whitehou se.liqx.net> wrote in message
news:3f******@d news.tpgi.com.a u...
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**********@h otmail.com> wrote in message
news:eE******** ******@tk2msftn gp13.phx.gbl...
Hi,

have you tried something like:

MySqlConn.Conne ctionString = "Data Source=localhos t;Database=<DB> ;User
ID=<user>;Passw ord=<password>" ;

I assume MySQL is on the same box.

Best regards,

Marc Höppner
NeoGeo

"David Whitehouse" <da***@whitehou se.liqx.net> wrote in message
news:3f******@d news.tpgi.com.a u...
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**********@h otmail.com> wrote in message
news:OB******** ******@tk2msftn gp13.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***@whitehou se.liqx.net> wrote in message
news:3f******@d news.tpgi.com.a u...
> 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
3364
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. This question might be more suited to a MySQL newsgroup, but since php and MySQL seem to have become almost married to one another, and since getting the data out and displaying it is where my problem seems to lie, I thought I would start with...
12
3623
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 <<<<<<<<<<<<<<< Instead of saying 3.23.57, shouldn't it show 5.xx.xx? Or, did I do something wrong?
5
7614
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 the array is needed ratherthan idividual reference. The situation is like this: When the page is loaded based on the user input say 6 values are created like character1="tom", character2="jerry", Character3="micky", Character4="donald",...
0
1852
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 only got the first one, which was # ./mysqladmin -u root --password I assume this gave the root user a password. I then downloaded and proceeded to compile the Perl DBI and DBD:mysql packages. The DBI package installed fine after I also...
0
1627
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 handlers that use them don't complain that they don't have the use statements within the module code and still work as normal. Jamie Krasnoo --
4
2812
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 http://192.168.1.106/~mlh/credifree/index.php the AMP app still thinks the data resides somewhere else. It runs fine - as long as I leave my LAN's external internet connection up. But if I unplug my LAN from the world, my app locks up. Before I...
3
4698
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 my databases by copying the data folder to some place? Then if I meet some disaster, could I just copy the backup folder back to recover my databases? Thank you. Zh.y
2
6704
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 MySQL-server-standard-5.0.15-0.rhel3.i386.rpm MySQL-shared-standard-5.0.15-0.rhel3.i386.rpm MySQL-standard-debuginfo-5.0.15-0.rhel3.i386.rpm
6
2020
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). While I don't think either are really that important for our situation, he wanted to know specifically whether PostgreSQL supported SQL:2003, and what sort of capabilities PostgreSQL has to scale across multiple CPUs and hosts (multithreading,...
3
3551
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 problem? any body solve my problem? Please answer me. Thanks in advance!
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9957
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8832
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5276
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.