Re: Unable to connect to database server! [message #172083 is a reply to message #172081] |
Sun, 30 January 2011 14:00 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 1/30/2011 6:43 AM, netsurfer802 wrote:
> I AM POSTING SOME OF THIS IN ALL CAPS TO HAVE WHAT I'M WRITING
> PERSONALLY IN
>
A perfect way to get people to stop reading after the first line, as I'm
sure many have.
> 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.)
Where did you get those instructions?
> I KEEP GETTING THE ERROR "UNABLE TO CONNECT TO DATABASE SERVER!"
> WHENEVER I
>
Which generally means either MySQL is not running and/or your connection
information (host, userid, password) are incorrect.
> GO TO MY HOMEPAGE WHICH IS WORKING OFF THE /HTDOCS/ADMIN/
> CATEGORIES.PHP FILE.
>
Location of your home page is immaterial.
> 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 CODE IN THE
> FOLLOWING FILES:
>
> /htdocs/includes/configure.php
> /htdocs/admin/includes/configure.php
> /htdocs/admin/categories.php
>
> PLEASE ADVISE ON WHAT I CAN DO TO BYPASS GETTING THIS ERROR EVERY
> TIME.
>
Start by learning how to use the Shift key.
> PLEASE FIRST READ BELOW. IF YOU CAN'T SEE ALSO WHY I MIGHT BE GETTING
> THIS ERROR AND YOU NEED MORE INFORMATION PLEASE DON'T HESITATE TO ASK
> WHAT YOU NEED TO KNOW...
>
<about 2500 lines snipped>
I'm not going to wade through all that code. The instructions seem to
be clear enough, although they are geared towards your specific lab
installation (as these usually are).
Did you check to ensure the MySQL connection parameters are correct?
What have you done to try to isolate your problem? Did you ask your
instructor what you might have done wrong (or missed)?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|