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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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 |
| |||
| 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 |
| ||||
| "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 --------------------------------------------------------- DSB http://www.documentscanningbureau.com |
| Thread Tools | |
| Display Modes | |
|
|