Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
|
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 2nd, 2005, 02:49 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default mysql_connect() will not connect!!!!

I'm using Windows 2003 server, its running IIS and PHP 4.3.10. I installed the latest mysql. Whenever I use PHP to connect to the MySQL database it gives me the error message: Unable to connect to MySQL server.
I can connect from the command line, i'm trying to install php-fusion forums, it gives me the same error. The server is set to localhost no matter what user I set. Whats the problem??

 
Old February 14th, 2005, 05:03 AM
Authorized User
 
Join Date: Feb 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

check the control panel/administrative tools /IIS/defualt web site properties/
home directory /configuration
and add php
 
Old February 15th, 2005, 12:20 AM
Authorized User
 
Join Date: Feb 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to knight
Default

Dear this is not the php problem is infact mysql server
installation u better check my sql at command prompt

like that
E:\mysql\bin
mysql
if u see the welcome message then ur mysql server is ready
to use
hope it will help u


 
Old February 26th, 2005, 11:09 AM
Authorized User
 
Join Date: Jan 2005
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to p2ptolu Send a message via Yahoo to p2ptolu
Default

mysql on my system works alone but can not connect to php, i use php4 and mysql 4.1 on apache 1.33 all om win xp pro,please help me too.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with mysql_connect() Evarias PHP Databases 5 May 24th, 2006 12:01 PM
i can not use the mysql_connect() function g.tamilselvan MySQL 2 February 14th, 2006 09:03 AM
Call to undefined function mysql_connect() tks_muthu PHP Databases 2 June 14th, 2005 01:23 AM
Cant Connect hansalas PHP Databases 2 April 16th, 2005 03:25 PM
undefined function: mysql_connect() shabboleth Beginning PHP 2 September 18th, 2003 05:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.