473,385 Members | 1,400 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,385 software developers and data experts.

Unable to connect to MySQL server

1
I have installed MySQL Community server and PHP 5.2.2( installed manually, no installer) on my pc
I configured php with IIS (version 5) properly.
If I open a php file in a webbrowser(internet explorer), it works as expected but if the php file has
code to extract data from mysql server, the web browser returns an empty page; no error is displayed.

Previously, i copied the php.ini-dist file then pasted and renamed it to php.ini into the C:\windows folder.
and made sure that the line extension=php_mysql.dll was un commented. By then the browser would report a
Fatal error : call to un defined function mysql_connect().

Currently I used php.ini-recommended instead of php.ini-dist and neither errors are displayed nor is anything
returned, only an empty page instead of dynamic data from the mysql database.

Generally both PHP and MySQl work properly independlty but cannot connect. I have researched all manuals and all I get
is confusion.
I humbly request for technical help.

My PC Environment

-windows XP service pack 2.
-IIS version 5.
-PHP 5.2.2 (No Installer).
-MySQL Community server 5.0.41-win32.
-Running PHP as ISAPI module.
((..all on one machine...)
Jun 12 '07 #1
2 1549
Purple
404 Expert 256MB
Hi and welcome to TSDN,

as a start point did you take a look at the first post within this forum Read First
covering how to configure your system with debugging messages turned on.

Post again if you have covered this already.

Regards Purple
Jun 12 '07 #2
pbmods
5,821 Expert 4TB
Changed thread title to actually describe the problem (hint... if we don't solve technical problems here, then what, exactly, is it that we *do* here? ~_^).
Jun 14 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sridhar Reddy | last post by:
Hi, Where can i get the download mysql.sock file? I am unable to connect to local server because i dont have this file? thanx in advance Sridhar
2
by: Mondal | last post by:
Hi, I am using MySQL 5.0 beta and Active Python 2.4. I have the correct version of MySQLdb installed. The problem is that I can't connect to MySQL through the Active Python interactive window. ...
3
by: pc | last post by:
hi everyone, I am trying to connect to a new mysql installation. I have given root permission to connect to all databases from anywhere; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY...
1
by: Nospam | last post by:
on trying to change the password it says this: C:\PROGRA~1\MYSQL\MYSQLS~1.0\BIN\MYSQLA~1.EXE: connect to server at 'localhost' failed error: 'Can't connect to MySQL server on 'localhost'...
23
cyberking
by: cyberking | last post by:
Hi. I have just started learning PHP along with MySQL. I am trying to connect to the MySQL DB server but unable to. I have been tryin. Please help. Its urgent cos I shall soon have to work on...
1
by: iceboy | last post by:
Hello to all,I have a problem to connect PHP & MySQL together. I have created a form that gets the username & password from admin and connect him to database.the part of PHP script that connect to...
1
by: ynyus75 | last post by:
Hey! I am unable to connect some of the services that I host from my laptop at home, such as SMTP and MySQL on port numbers 25 and 3306 respectively. But I am able to some services such as...
8
by: malaysiauser | last post by:
Im new user of PHP and MySQL. I tried to use a script package for my web. I'd created a database. And my connection scripts are as follow; <?php $mysql_host="localhost"; ...
10
rhitam30111985
by: rhitam30111985 | last post by:
hi all .. java/jdbc newbie here ... i cant seem to perform the most basic step for database connectivity using java . here is my code : import java.sql.*; public class connect { ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.