Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #11046 > unrolled thread

Re: Unable to connect to database server!

Started byrichard <member@newsguy.com>
First post2011-01-30 12:38 -0700
Last post2011-01-30 14:49 -0500
Articles 2 — 2 participants

Back to article view | Back to comp.lang.php

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Unable to connect to database server! richard <member@newsguy.com> - 2011-01-30 12:38 -0700
    Re: Unable to connect to database server! Jerry Stuckle <jstucklex@attglobal.net> - 2011-01-30 14:49 -0500

#11046 — Re: Unable to connect to database server!

Fromrichard <member@newsguy.com>
Date2011-01-30 12:38 -0700
SubjectRe: Unable to connect to database server!
Message-ID<ce7t5ouf1g36.dlg@evanplatt.sux>
On Sun, 30 Jan 2011 03:43:35 -0800 (PST), netsurfer802 wrote:

> I AM POSTING SOME OF THIS IN ALL CAPS TO HAVE WHAT I'M WRITING
> PERSONALLY IN
> 
> THIS POST FROM WHAT I'M COPYING (EXAMPLE FOR CONTENTS ON MY WEB HOST
> AS WELL
> 
> AS THE INSTRUCTIONS I WAS GIVEN TO HAVE PHP FILES WORK WITH MY MYSQL
> 
> DATABASE.)
> I KEEP GETTING THE ERROR "UNABLE TO CONNECT TO DATABASE SERVER!"
> WHENEVER I
> 
> GO TO MY HOMEPAGE WHICH IS WORKING OFF THE /HTDOCS/ADMIN/
> CATEGORIES.PHP FILE.
> 
>  WHY?  WHAT CAN I DO TO CORRECT THIS?  THE INSTRUCTIONS SAY TO GO TO
> THE
> 
> /ADMIN FOLDER OF MY WEBHOST AND THEN TO CLICK ON THE LINK TO LOG IN
> WHICH
> 
> AUTOMATICALLY "CALLS UP" THE /HTDOCS/ADMIN/CATEGORIES.PHP FILE THAT I
> KEEP
> 
> GETTING THE ERROR WITH.  FIRST I'LL INCLUDE THE INSTRUCTIONS THAT I
> WAS GIVEN
> 
> AND HAD FOLLOWED TO THE BEST THAT I KNEW TO...AND THEN I'LL PASTE ALL
> THE
> 

First, you need to setup an mysql database on the server itself.
It usually takes the form of database_name, userID, password.
Database_name is generally the same as the FTP account.
You should ask your host if they even PHP to begin with, then, how to setup
the mysql information.
Once you've done that, you should not have a problem with the script.

[toc] | [next] | [standalone]


#11150

FromJerry Stuckle <jstucklex@attglobal.net>
Date2011-01-30 14:49 -0500
Message-ID<ii4fbk$7a1$1@news.eternal-september.org>
In reply to#11046
On 1/30/2011 2:38 PM, richard wrote:
> On Sun, 30 Jan 2011 03:43:35 -0800 (PST), netsurfer802 wrote:
>
>> I AM POSTING SOME OF THIS IN ALL CAPS TO HAVE WHAT I'M WRITING
>> PERSONALLY IN
>>
>> THIS POST FROM WHAT I'M COPYING (EXAMPLE FOR CONTENTS ON MY WEB HOST
>> AS WELL
>>
>> AS THE INSTRUCTIONS I WAS GIVEN TO HAVE PHP FILES WORK WITH MY MYSQL
>>
>> DATABASE.)
>> I KEEP GETTING THE ERROR "UNABLE TO CONNECT TO DATABASE SERVER!"
>> WHENEVER I
>>
>> GO TO MY HOMEPAGE WHICH IS WORKING OFF THE /HTDOCS/ADMIN/
>> CATEGORIES.PHP FILE.
>>
>>   WHY?  WHAT CAN I DO TO CORRECT THIS?  THE INSTRUCTIONS SAY TO GO TO
>> THE
>>
>> /ADMIN FOLDER OF MY WEBHOST AND THEN TO CLICK ON THE LINK TO LOG IN
>> WHICH
>>
>> AUTOMATICALLY "CALLS UP" THE /HTDOCS/ADMIN/CATEGORIES.PHP FILE THAT I
>> KEEP
>>
>> GETTING THE ERROR WITH.  FIRST I'LL INCLUDE THE INSTRUCTIONS THAT I
>> WAS GIVEN
>>
>> AND HAD FOLLOWED TO THE BEST THAT I KNEW TO...AND THEN I'LL PASTE ALL
>> THE
>>
>
> First, you need to setup an mysql database on the server itself.
> It usually takes the form of database_name, userID, password.
> Database_name is generally the same as the FTP account.

Incorrect.  I have many databases on my servers, and none of them are 
the same as the ftp account names.

> You should ask your host if they even PHP to begin with, then, how to setup
> the mysql information.
> Once you've done that, you should not have a problem with the script.

They definitely have PHP - or he would have numerous other errors. 
Additionally, this is obviously for a course in PHP - not much sense 
having a PHP course with no PHP!

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web