not able to connect to mysql

Status
Not open for further replies.

mishraat10h

New Member
Messages
12
Reaction score
0
Points
0
In one of my pages, i try to connect to Database using following code:

$link = mysql_connect("localhost","<myUser>","<myPassword>") or die("Couldn't make connection.");

This page was very much functioning some time back but does not work now. When i try to open the relevant page i get the below error:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user '<myUser>'@'web7.vital.x10hosting.com' (using password: YES) in /home/shaleenm/public_html/webstore/dbc.php on line 16
Couldn't make connection.

Dont know from where this 'web7.vital..' is coming! I remember my DB used to be on stoli or starka. Can anyone help from admin group?
 

mishraat10h

New Member
Messages
12
Reaction score
0
Points
0
I think, when when they did the migration, the configuration got disturbed. I just deleted my mysql db and resoted it from backup. It is back working again.

Cheers!
 
Status
Not open for further replies.
Top