new domian and mysql..... please help

Status
Not open for further replies.

unknown

New Member
Messages
7
Reaction score
0
Points
0
Hello, i cant connect to my database....
> if i click phpmyadmin from cpanel i get in just
> fine and can add tables ect., but trying to connect
> thruogh my php script i get connection errors....
> I known my script is fine, ive used it for a few
> years on other servers.
>
> server status on my acount page shows this.
> MySQLOffline
>

> and heres errors i get from my site.
> Warning: mysql_select_db()
> [function.mysql-select-db]: Access denied for user
> ********(using password: NO) in
> /home/cohan79/public_html/s1/fix.php on line 11
>
>
> Warning: mysql_select_db()
> [function.mysql-select-db]: A link to the server
> could not be established in
> /home/cohan79/public_html/s1/fix.php on line 11
>
> also i have my own domain www.the-global-wars.com,
> and when trying to set it as my domian from my
> acount page , it says the feature is down...
> gwars.x10hosting.com is the sub domain i signed up
> with.

php script That should connect????????
and yes $dbhost,$dbuser,$dbpass, and $dbname are defined as they should be... also works on my devel. pc with the same ver. php and same ver. of mysql as this sever runs.............

if ($REQUEST_URI)
if (!$link = @mysql_connect($dbhost,$dbuser,$dbpass))
{
print "Error! Database unavailable!\n";
exit;
}
mysql_select_db($dbname);



Could someone please fix this for me!
it cant be my script......
and change my domain.its be like this for about a week now
icon9.gif

>
> My site is a simple browser text game that will
> not do nothing without being able to connect to
> mysql. please help!
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Please request a domain change in the upgrades/downgrades/changes section. Are you sure you put the right password and the right database and if the mysql is down that will most likely be an error.
 

unknown

New Member
Messages
7
Reaction score
0
Points
0
ok thanx ill do that for the domain .....
as for the mysql yes they'er right. ive made 2 users and 2 database's, giving the users all permisions.

as far as the $dbhost, ect. , i use this becouse i have a few dif. pages that need to connect, but just to be sure ive even tryed putting the info in like this,
if (!$link = @mysql_connect('localhost','*******','*******'))
{
print "Error! Database unavailable!\n";
exit;
}
mysql_select_db('*****');

on of my pages to see, but still with trying both users i get the cant connect errors ????
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I believe I added you to MSN so we can figure this out. Could you contact me next time you are on? I'm going to close this for now, I will be looking into the upgrade\downgrade requests today.

-Corey
 
Status
Not open for further replies.
Top