Unix Technical Forum

Connecting MYSQL to IIS v5

This is a discussion on Connecting MYSQL to IIS v5 within the MySQL forums, part of the Database Server Software category; --> I have IIS v5 running on a local machine and have recently loaded PHP v5. Running phpinfo in my ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 11:28 AM
Mick
 
Posts: n/a
Default Connecting MYSQL to IIS v5

I have IIS v5 running on a local machine and have recently loaded PHP
v5. Running phpinfo in my browser shows PHP is running OK.

I have now downloaded MySQL v5 and using the command line I can create
and populate databases.

The problem comes when I try to connect to the database from a PHP
script. All I get in the browser is a HTTP 500 server error with no
other error message in the browser. I've tried switching off my
firewall, checking PHP.ini and the connection string in my script but
everything appears OK.

I would be grateful for any suggestions as to where I'm going wrong
and what I need to do to get my connection working.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 11:28 AM
J.O. Aho
 
Posts: n/a
Default Re: Connecting MYSQL to IIS v5

Mick wrote:
> I have IIS v5 running on a local machine and have recently loaded PHP
> v5. Running phpinfo in my browser shows PHP is running OK.
>
> I have now downloaded MySQL v5 and using the command line I can create
> and populate databases.
>
> The problem comes when I try to connect to the database from a PHP
> script. All I get in the browser is a HTTP 500 server error with no
> other error message in the browser. I've tried switching off my
> firewall, checking PHP.ini and the connection string in my script but
> everything appears OK.
>
> I would be grateful for any suggestions as to where I'm going wrong
> and what I need to do to get my connection working.
>


I would guess you are missing the mysql dll for php, or you forgot to make it
to be loaded in the php.ini.

If you want an easy way to setup web server, php and mysql, then visit this
link: www.distrowatch.com

--

//Aho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 11:28 AM
Brian Wakem
 
Posts: n/a
Default Re: Connecting MYSQL to IIS v5

Mick wrote:

> I have IIS v5 running on a local machine and have recently loaded PHP
> v5. Running phpinfo in my browser shows PHP is running OK.
>
> I have now downloaded MySQL v5 and using the command line I can create
> and populate databases.
>
> The problem comes when I try to connect to the database from a PHP
> script. All I get in the browser is a HTTP 500 server error with no
> other error message in the browser. I've tried switching off my
> firewall, checking PHP.ini and the connection string in my script but
> everything appears OK.
>
> I would be grateful for any suggestions as to where I'm going wrong
> and what I need to do to get my connection working.



Look in your webserver's error log.


--
Brian Wakem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 11:28 AM
Mick
 
Posts: n/a
Default Re: Connecting MYSQL to IIS v5

Thanks for your input. I now have a connection with IIS and MySQL.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2008, 11:29 AM
Mike
 
Posts: n/a
Default Re: Connecting MYSQL to IIS v5


"Mick" <mick.smith1@gmail.com> wrote in message
news:1191159929.187295.203950@k79g2000hse.googlegr oups.com...
> Thanks for your input. I now have a connection with IIS and MySQL.
>


You mean PHP and MySQL . Glad you got it working













---------------------------------------------------------
DSB
http://www.documentscanningbureau.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com