Errors
Posted: Tue Jan 12, 2010 3:12 am
Ok I just transfered a site from one server to a new one (It was originally piggybacking off another site now it has its own) and now I'm getting errors. This wouldn't be a big problem but I didn't write the code for this site myself. Can anyone tell me why it worked fine on one site and now isn't working at all? I know its to do with connecting to the database but, like I said I'm not sure why it worked fine now isnt 
Also I'm not sure, but I think the problems are all because of the first warning?
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'name'@'localhost' (using password: NO) in /usr/......./www/lib/opencon.php on line 5
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /usr/......../www/lib/opencon.php on line 7
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /usr/........../www/lib/class-functions.php on line 1473
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /usr/........../www/lib/class-functions.php on line 1478
PS: I had to remove full locations etc for security reasons - and if its something simple and I'm being dense, its 9am on tuesday morning!
EDIT: after some browsing, learnt it could be my username is incorrect, but its the same code as before nothing has changed?
Also I'm not sure, but I think the problems are all because of the first warning?
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'name'@'localhost' (using password: NO) in /usr/......./www/lib/opencon.php on line 5
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /usr/......../www/lib/opencon.php on line 7
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /usr/........../www/lib/class-functions.php on line 1473
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /usr/........../www/lib/class-functions.php on line 1478
PS: I had to remove full locations etc for security reasons - and if its something simple and I'm being dense, its 9am on tuesday morning!
EDIT: after some browsing, learnt it could be my username is incorrect, but its the same code as before nothing has changed?