getting my site to work

sk8rmatt

New Member
Messages
5
Reaction score
0
Points
0
i baught some scripts, and i uploaded all the files, and laded the tables onto the phpmyadmin, everything is on, but it still says "Unable to connect to the database server at this time." when i go to the url of the site, how do i get my site to work
 
Last edited:

GamingX

Executive Team
Messages
6,355
Reaction score
3
Points
38
Have you set the database address to 'localhost'?
 

oiwio

New Member
Messages
214
Reaction score
0
Points
0
how are you connecting to your database?

You need a strip of code to connect to the database which might not have come with your scripts
 
Last edited:

mygorillanet

New Member
Messages
40
Reaction score
0
Points
0
In order to connect to your database, you need some lines of code where the parameters of connection are set and where the actual connection is done.

If you are using a good editor, search for the string 'mysql_connect' in all your pages and examine the one you come across first.

It should be written as;

mysql_connect('servername','database user', 'database password')

Depending on which scipt you are using, the variables ('servername','database user', 'database password') could be located in an external config file. Check the top of this page for any includes and navigate to those files.

find the variables 'servername','database user', 'database password' and equal them to your parameters.

If this is too hard, you could tell us which script you are using and we could tell you exactly which file to edit.

good luck!
 

lordtron

New Member
Messages
85
Reaction score
0
Points
0
It could also be under hostname instead of servername, well at least for me thats how its been.
 
Top