Re: Unable to connect to database server! [message #172097 is a reply to message #172095] |
Sun, 30 January 2011 19:49 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
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(at)attglobal(dot)net
==================
|
|
|