FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Unable to connect to database server!
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Unable to connect to database server! [message #172095 is a reply to message #172081] Sun, 30 January 2011 19:38 Go to previous messageGo to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Heredoc print to file? Use nowdoc.
Next Topic: Only SPAM!!!
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 05:41:24 GMT 2024

Total time taken to generate the page: 0.05408 seconds