Forum Moderators: mack

Message Too Old, No Replies

MySQl-phpadmin-ASP Help

         

pauld

7:20 pm on May 14, 2003 (gmt 0)

10+ Year Member



Solutions to this would really help.

I got MySql running on remote server on win2k. I got phpadmin administering it. I would like to know how can I connect an aspx page to access data from the mysql database? I can run the page locally where the database is running but when I put it in a different server, I get stuck. please help

what do I have to change on the ASP page and on MySQL config?

jeremy goodrich

7:45 pm on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld!

From the bit I understand from your post, you might have set the mySQL-phpadmin parameters to only accept connections from 'localhost' which would prevent it from being accessed by another server.

You can check to see if that is indeed the case by looking through your config file, and then see if it is configured only for localhost or global access.

Perhaps you could let us know if that is it, or something else? :)

pauld

12:08 am on May 15, 2003 (gmt 0)

10+ Year Member



This was what I found under my.ini in /winnt
#This File was made using the WinMySQLAdmin 1.4 Tool
#19/08/2002 7:26:44 PM

#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions

[mysqld]
basedir=C:/mysql
#bind-address= {some IP address}
datadir=C:/mysql/data
#language=C:/mysql/share/your language directory
#slow query log#=
#tmpdir#=
port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=C:/mysql/bin/mysqld-nt.exe
user={some username}
password={some password}

jeremy goodrich

5:55 pm on May 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it looks like it is not bound to an IP right now - from your config file there, as this indicates:

#bind-address= {some IP address}

So, then we move to your ASP script :) which is where my help ends, unfortunately - I don't do ASP.

If the connection is similar to perl / php, then you need to make sure you are connecting to the right IP addy, instead of localhost, for the connection...and, turn on 'debugging' it may give you some useful data.

Though perhaps an ASP person could give you a bit better piece of advice?

pauld

6:37 pm on May 15, 2003 (gmt 0)

10+ Year Member



I think I figured the problem

the db was on a commercial server so the port was blocked.
:))

Now I've to figure out how to connect ASP to the db

thanks

jeremy goodrich

6:41 pm on May 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No problem! You might get some more help if you need it in the Microsoft .Net & ASP related forum [webmasterworld.com] here at WebmasterWorld. ;)

Because, in all honesty, if you're connecting an asp script to a db from a server that is a connection between 2 different servers, that doesn't exactly sound like a 'newbie' question. lol.

Quite a bit beyond me, in fact...