Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #11046
| From | richard <member@newsguy.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Unable to connect to database server! |
| Date | 2011-01-30 12:38 -0700 |
| Organization | NewsGuy - Unlimited Usenet $19.95 |
| Message-ID | <ce7t5ouf1g36.dlg@evanplatt.sux> (permalink) |
| References | <f0380881-5763-40b2-baeb-fd86e4568e38@d11g2000yql.googlegroups.com> |
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.
Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread
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
csiph-web