Mysql Argh!

Status
Not open for further replies.

afcbyl

New Member
Messages
2
Reaction score
0
Points
0
hey guys i'm new to this as just started a web design corse but hav very little php etc. knowledge.

im tryin to connect to my database and im gettin this :

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'andbuild'@'74.86.116.190' (using password: YES) in /home/andbuild/public_html/dologin.php on line 7
There was a problem connecting to the mysql server. Error returned: Access denied for user 'andbuild'@'74.86.116.190' (using password: YES)


my code at the beginning being..
<?php
$username = "andbuild"; // MySQL Username
$password = "*****"; //MySQL Password
$server = "x10hosting.com"; // MySQL server you wish to connect to. Usually "localhost"
$mysqlconnection = mysql_connect($server, $username, $password);
if (!$mysqlconnection) {
die('There was a problem connecting to the mysql server. Error returned: '. mysql_error());
}
?>

have i made a simple error... PROBABLY!!
please could someone help?:nuts:
 

Brokenfor

New Member
Messages
55
Reaction score
0
Points
0
Are you on a free part of the server, e.g. cossacks
Edit:
scratch that i have no idea
 
Last edited:

tittat

Active Member
Messages
2,478
Reaction score
1
Points
38
have you added privilages to the username 'andbuild'?if not do it...
 

Relemar

New Member
Messages
79
Reaction score
0
Points
0
Yeah maybe you're still using good old localhost, download your cfg edit it, then re upload it.
 
Status
Not open for further replies.
Top